You must be logged in to post


Register? | Lost Your Password?

Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

How to Disable the "Buy Now" option or the "Add to Cart" option

UserPost

9:14 pm
February 27, 2009


Market Admin

Admin

posts 4756

1

Market comes pre-installed with both "Buy Now" and "Add to Cart" options & buttons on the product details page.  You will want to use one, and disable the other.  Here's what they do:

  • The "Buy Now" option will transfer the customer immediately to Paypal once clicked.
  • The "Add to Cart" option adds the product to the customer's shopping cart, and lets the customer continue shopping for more items.

Which should you use? 

Generally, if it's possible your customer may order multiple items, you should use the "Add to Cart" option (and disable the "Buy Now" option). 

If you know that your customer will ONLY be buying a single item, then you should use the "Buy Now" option (and disable the "Add to Cart" option). 

Here are instructions for disabling the option you don't need.  Don't worry, it may LOOK confusing, but just follow the instructions step-by-step and you'll find it's easy.

The first set of instructions is how to disable the "Buy Now", the second is how to disable the "Add to Cart". 

(Make sure that you only disable one of the following two — NOT both.)

====================================

How to Disable the "Buy Now" option

====================================

Open the file "single.php" for editing in your WordPress administration Theme Editor.

Scroll down until you find the code:

  <div class="buy">
<?php /* */ ?>
    <!–Start BuyNow Code–>
    <form class="lsf" action="https://www.paypal.com/cgi-bin/webscr" method="post">

Change the second line by removing the SECOND asterisk/slash combo "*/".  (Make sure you take out the correct one.)  Your resulting code should look like:

  <div class="buy">
<?php /*  ?>
    <!–Start BuyNow Code–>
    <form class="lsf" action="https://www.paypal.com/cgi-bin/webscr" method="post">

Now, scroll down a little farther until you see the code:

    <!–End BuyNow Code–>
<?php /* */ ?>
    <!–Start Vcart Code–>
    <form class="crtAdd rsf" method="post" action="<?php bloginfo('template_directory'); ?>/ajCart/cart.php" >

Change the second line by removing the FIRST slash/asterisk combo "/*".  (Again, make sure you take out the correct one.)  Your resulting code should look like:

    <!–End BuyNow Code–>
<?php  */ ?>
    <!–Start Vcart Code–>
    <form class="crtAdd rsf" method="post" action="<?php bloginfo('template_directory'); ?>/ajCart/cart.php" >

Now, locate the letters "rsf" in the 4th line as shown above (the line that starts with "<form class=").  Delete the 3 letters ("rsf").

Your resulting code should look like:

    <!–End BuyNow Code–>
<?php /*  ?>
    <!–Start Vcart Code–>
    <form class="crtAdd " method="post" action="<?php bloginfo('template_directory'); ?>/ajCart/cart.php" >

Save the file, and that's it!  This should prevent the "Buy Now" options and buttons from showing up.

.

====================================

How to Disable the "Add to Cart" option

====================================

Open the file "single.php" for editing in your WordPress administration Theme Editor.

Scroll down until you find the code:

    <!–End BuyNow Code–>
<?php /* */ ?>
    <!–Start Vcart Code–>
    <form class="crtAdd rsf" method="post" action="<?php bloginfo('template_directory'); ?>/ajCart/cart.php" >

Change the second line by removing the SECOND asterisk/slash combo "*/".  Make sure you take out the correct one. 

Your resulting code should look like this:

    <!–End BuyNow Code–>
<?php /*  ?>
    <!–Start Vcart Code–>
    <form class="crtAdd rsf" method="post" action="<?php bloginfo('template_directory'); ?>/ajCart/cart.php" >

Now, scroll down a little farther until you see the next section of code that looks like this:

    <!–End Vcart Code–>
<?php /* */ ?> 
    <div style="clear: both"></div>

Change the second line by removing the FIRST slash/asterisk combo "/*".  Again, make sure you take out the correct one.  Your resulting code should look like:

    <!–End Vcart Code–>
<?php  */ ?> 
    <div style="clear: both"></div>

Save the file, and that's it!  This should prevent the "Add to Cart" options and buttons from showing up.



 

Market takes e-commerce to the next level with an easy to use, quick setup platform. Learn more or take the tour.