| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Improved minicart display | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#41
|
|||||||||
|
|||||||||
![]() Heh, I don't see the code you're speaking of in the code for minicart.tpl as I have shown above.
Also, my shipping calculates fine. I have shipping based on weight.
__________________
Cordially, Just me X-Cart Gold Version 4.2.3 Multilingual shop: Spanish, French and US English |
|||||||||
#42
|
|||||||||
|
|||||||||
![]() I found it disconcerting that the customer saw a total greater than the sum of its parts in the minicart since the total included taxes (IVA). I have now added a line for taxes to be displayed in minicart. Now the grand total adds up.
Here's the modified code: Code:
__________________
Cordially, Just me X-Cart Gold Version 4.2.3 Multilingual shop: Spanish, French and US English |
|||||||||
#43
|
|||||||||
|
|||||||||
![]() Quote:
it might be your version. the code calculates the total plus shipping and in my version, the total already includes shipping. some of the people in the previous posts were having the same issue with the price in the minicart not being the same as the "true" price. so if you adjust the code as i suggested previously, it will calculate correctly. the only problem i have now is that it's not calculating x-special offers discounts
__________________
X-Cart Gold 4.4.3 -------------------------------------- |
|||||||||
#44
|
|||||||||
|
|||||||||
![]() Okay. guess my version doesn't have that code. It's amazing how there is always something that could be added to this.
Now I would like the customer to stay on the same page after removing soemthing fromnthe cart. I have looked through the thread and found others asking the same but no answers. Help would be appreciated.
__________________
Cordially, Just me X-Cart Gold Version 4.2.3 Multilingual shop: Spanish, French and US English |
|||||||||
#45
|
|||||||
|
|||||||
![]() Great mod.
Got it working in 4.1.3 with no problems using the code here: http://forum.x-cart.com/showpost.php?p=144767&postcount=15 Thanks alot. Take Care - Ride FREE |
|||||||
#46
|
|||||||
|
|||||||
![]() I dont get how the system knows to load minicart.tpl cause I dont see if referenced anywhere in minicart.php ??
Anyone?
__________________
Xcart 4.0.19 |
|||||||
#47
|
|||||||||
|
|||||||||
![]() Hi pdheady:
Here's the programming logic flow chat for php files: home.php ----- contains ----- require ".auth.php"; auth.php ----- contains ----- include $xcart_dir.DIR_CUSTOMER."/minicart.php"; So, minicart.php is included in home.php Output from home.php is displayed through home.tpl. Connections between home.php and home.tpl can be found here: func_display("customer/home.tpl",$smarty); (last line in home.php) Here's the programming logic flow chat for tpl files: /skin1/customer/home.tpl ----- contains ----- {include file="customer/menu_cart.tpl" } /skin1/customer/menu_cart.tpl ----- contains ----- {include file="customer/main/minicart.tpl" } So, minicart.tpl is included in home.tpl, which of course will show up as part of home.tpl output. I hope this is helpful. Guosheng ![]() |
|||||||||
#48
|
|||||||||
|
|||||||||
![]() Actually, auth.php is included in many other php files, such as product.php (for displaying product details), so that when a file such as product.php is called, it will also display minicart on the same page.
Let's use product.php as another example. The following two lines can be found in file product.php: require "./auth.php"; and func_display("customer/home.tpl",smarty); So, whenever a product details page is shown, minicart will appear also. I'm sure you can find other php files/examples which include auth.php and display through home.tpl, and therefore minicart will show up along with output from home.tpl. Happy code tracking! Guosheng ![]() |
|||||||||
#49
|
|||||||
|
|||||||
![]() Is this minicart personalization compatible with LiteCommerce 2.2?
Thank you Gianni
__________________
xcart v3.5.11 (linux) (mac) litecom v2.2.21 (linux) (mac) |
|||||||
#50
|
|||||||||
|
|||||||||
![]() Most likely it's not compatible with LiteCommerce 2.2.
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|