Forum Replies Created
-
AuthorPosts
-
amin007Participant
The above will remove the “Quantity” header from the table so customer won’t see it but they can still click the “Add to Cart” button twice the quantity will go up. So to take care of that open the “wp_eStore1.php” file and look for the following block of code:
if ($item['name'] == stripslashes($_POST['product']))
{
$req_qty = $item['quantity']+1;
$update_quantity = is_quantity_availabe($item['item_number'],$req_qty);
$count += $item['quantity'];
if ($update_quantity)
{
$item['quantity']++;
unset($products[$key]);
array_push($products, $item);
}
}Once you find it, change it to the following to finalize the quantity removal:
if ($item['name'] == stripslashes($_POST['product']))
{
$count =2;
}Thanks to Ian Clarke for modifying the code to match with the current version of eStore.
October 11, 2009 at 10:54 pm in reply to: How to use a different Page Style for the paypal checkout page #15758amin007ParticipantYes, you can modify the simple shopping cart to specify a different page style.
Once the Page Style is set in PayPal all that is necessary to activate it (on the fly) as it passes to Paypal, is one line of HTML code.
<input type="hidden" name="page_style" value="style name">
where “style name” is the name of the Page Style page you set in Paypal.
If you didn’t know your way around HTML and PHP then here is what you need to do…
1. Open the “wp_shopping_cart.php” file and search for the following line:
<input type="hidden" name="cmd" value="_cart" />
2. Now, add the line that adds a custom page style like the follwoing:
<input type="hidden" name="cmd" value="_cart" /><input type="hidden" name="page_style" value="style name">
3. Save and upload the modified file and you are done.
Now when someone clicks the checkout button and goes to PayPal they will see the customer checkout page that you have specified.
-
AuthorPosts