| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Improved minicart display | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#51
|
|||||||
|
|||||||
![]() Great mod. Works great in 4.1.6.
Used code from here - http://forum.x-cart.com/showpost.php?p=156065&postcount=33
__________________
Jeff S. http://www.icases.net X-Cart V4.1.6 A search engine that pays you! $.25/hour - click here What is AGLOCO? click here |
|||||||
#52
|
|||||||
|
|||||||
![]() My first X-Cart contribution.....
People have been asking how to return to the same page, not the cart, after removing a product from the min-cart. Simple -- find this code section in cart.php: # DELETE PRODUCT if ($mode == "delete" && !empty($productindex)) { ... ... ... $cart = func_array_merge($cart, func_calculate($cart, $products, $login, $current_area, 0)); --> ADD THIS: $return_url = $_SERVER['HTTP_REFERER']; func_header_location($return_url); } That's it. Just remember -- it would be wise to add some input validation/filtering on $_SERVER['HTTP_REFERER'].
__________________
Pinestream X-Cart 4.1.8 Also litecommerce 2.2 |
|||||||
#53
|
|||||||
|
|||||||
![]() Hello,
I thank you very much for this great contribution ! CU
__________________
X-CART GOLD 4.1.7 ADDONS : X-RMA | X-AOM | X-MAGNIFIER HACKS : MINICART MAGNIFIER |
|||||||
#54
|
|||||||
|
|||||||
![]() Thanks very much for this mod it works really well except for Gift certificate module. When I try to add a gift certificate to the minicart. It returns with this error message " Fatal error: Unsupported operand types in /clientdata/clients/a/u/aussiebestprice.com/www/minicart.php on line 53". Attached is my minicart.php can someone assist?
Quote:
__________________
X-cart Gold 4.1.6 |
|||||||
#55
|
|||||||||
|
|||||||||
![]() Line 53 in my minicart.php is this one:
PHP Code:
maybe you changed it somehow? I've attached my minicart.php for you. It's the same version as you are working with. I've tested it and the gift certificate works, though it just adds to the totals rather than looking like a product in the minicart.
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10 |
|||||||||
#56
|
|||||||
|
|||||||
![]() Hi HWT,
Thanks very much for your help, it is now working again.
__________________
X-cart Gold 4.1.6 |
|||||||
#57
|
|||||||||
|
|||||||||
![]() Quote:
I could not get this to work, but noticed this line: PHP Code:
which I changed to: PHP Code:
This work great. Again thanks to all who have contributed to this mod. |
|||||||||
#58
|
|||||||||
|
|||||||||
![]() I have this working in 4.1.7 but have a shipping issue.
If you go into the cart then exit the cart via continue shopping then the shipping amount appears even if you are not logged in. This is great, but it would be nice to have the shipping apear without going into the cart first. It just does not make much sense to me. |
|||||||||
#59
|
|||||||||
|
|||||||||
![]() Thanks for pointing this out. I thought everything was peachy with this mod until you posted.
A stop gap work around for us is to display "view cart" when the totals meet certain conditions. What I mean is this. We offer free shipping on orders over $97 and flat rate ground shipping on all orders under $97. So, the shipping was displaying $0.00 on all cart contents regardless of the total until the customer entered the cart. then it displayed correctly (as you stated) So, I simply added an {if} statement to take care of it that if the $minicart_shipping = 0 and $grantotal < 97 to display "view cart" else do the normal stuff. You may be able to apply the same kind of concept. Here's the code for mine: Code:
What worked nicely doing it this way was that after you visit the cart itself, you never have the issue again (for our shipping system). I'm not sure how it will do with real time shipping, as we only offer that for express delivery, and customers usually choose it on checkout, not by what the minicart says anyway. hope this helps!
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10 |
|||||||||
#60
|
|||||||||
|
|||||||||
![]() I am having a problem with the minicart displaying the proper totals. (see attach)
The hinge shown in the cart is 46.95 each, but on orders over $125, we discount 20%. So it is showing the correct discounted price for the item, but the total at the bottom is still showing the price before discount $140.55 (qty 3) and is not adding in the shipping. I tried looking at the fastlane module cart_subtotal.tpl for some ideas on how to get this to display correct totals but got nowhere fast. Does anyone know where to go with this or am I beating a dead horse? ![]() Here is my minicart.tpl code Code:
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|