A A A

Please consider registering
guest

Log In Register

Login form protected by Login LockDown.


Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




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

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
How to Disable the "Buy Now" option or the "Add to Cart" option
February 27, 2009
9:14 pm
Admin
Forum Posts: 5051
Member Since:
March 16, 2008
Offline

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.

Forum Timezone: UTC 0

Most Users Ever Online: 40

Currently Online:
21 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

icy1: 2371

wreed06: 175

laurie390: 168

StitchTek Services, LLC: 144

boutiqueelliette: 130

yiorgos: 127

Member Stats:

Guest Posters: 428

Members: 2252

Moderators: 1

Admins: 1

Forum Stats:

Groups: 1

Forums: 4

Topics: 2983

Posts: 16042

Moderators: Market Admin (5051)

Administrators: Market Admin (5051)

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