Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Improved minicart display

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #61  
Old 05-22-2007, 04:38 PM
 
whsu716 whsu716 is offline
 

Senior Member
  
Join Date: Jun 2005
Posts: 168
 

Default Re: Improved minicart display

Quote:
$return_url = $_SERVER['HTTP_REFERER'];
func_header_location($return_url);

Very strange

it works fine on Mozilla, but not on IE? What gives?

When I remove something from the cart in IE, it redirects me to the front page of the site.

Is there something I should be doing?

Thanks
__________________
...
v 4.0.18; 4.1
Reply With Quote
  #62  
Old 06-05-2007, 09:22 PM
 
yages yages is offline
 

eXpert
  
Join Date: Sep 2004
Location: Australia
Posts: 332
 

Default Re: Improved minicart display

Having problem with freight
The freight in the mini cart does not include tax
So the customer can see the difference between the minicart and the shopping cart charges
__________________
yages
x-cart version 4.5.5
Reply With Quote
  #63  
Old 06-13-2007, 04:41 PM
 
dub713 dub713 is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 56
 

Default Re: Improved minicart display

okay, i'm posting in this thread now since it seems this board is a ghost town at times...

this mod works fine, but i'm curious if anyone has a solution to the following...


my setup... i don't display shipping, subtotal only, i've got a remove item link, that refrshes on the same page. everything works, but when you remove an item, the subtotal amount does not change or refresh to reflect the new modified amount.

has anyone figured out where this is in the code?? why wouldn't this work for the minicart if it works for the cart? what variables or code is missing for the math to not work?

thanks,
j
__________________
X-Cart version 4.1.7 - PHP 5.2. - MySQL server 5.0.41-community-nt - MySQL client 5.0.22 - Web server Apache/2.2.4 (Win32) - PHP/5.2.2
Reply With Quote
  #64  
Old 06-13-2007, 05:19 PM
  HWT's Avatar 
HWT HWT is offline
 

eXpert
  
Join Date: Jan 2005
Location: Massachusetts, USA
Posts: 392
 

Default Re: Improved minicart display

Probably why nobody is answering:

I just checked mine, and I don't have this problem. Please post your code so we can have a look.
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10
Reply With Quote
  #65  
Old 07-06-2007, 03:32 AM
 
stickygoblin stickygoblin is offline
 

Advanced Member
  
Join Date: Apr 2006
Location: Gloucester, UK
Posts: 34
 

Default Re: Improved minicart display

Quote:
Originally Posted by yages
The freight in the mini cart does not include tax

I'm also having a problem with the tax not being added in the minicart (also can't get remove item links working)

any suggestions gratefully received guys.
__________________
X-cart custom design and implementation specialists based in the UK

X-Cart Version :: 4.1.9
Running on :: Linux 9.3 with Plesk 8.2
Webserv :: Apache Tomcat 4.1.24-full.2jpp
mySQL :: 4.1.20
PHP :: 5

http://www.19dozen.com
http://www.a1automodels.com
http://www.norinse.co.uk
http://www.akw-medicare.com
http://www.akw-medicare.eu
http://www.ironmongery2u.com
http://www.carperformanceuk.co.uk
Reply With Quote
  #66  
Old 07-06-2007, 06:31 AM
  chetlucas's Avatar 
chetlucas chetlucas is offline
 

Advanced Member
  
Join Date: Oct 2003
Location: Inverness, Florida
Posts: 56
 

Default Re: Improved minicart display

I have this mod working in 4.1.8 and it works great except for not showing "Gift Certificates". It will show that there is another item in the cart but "Gift Certificate" is not listed as one of the items. Even trying this on your website, www.vonbell.com, it shows the same thing I am getting. Any ideas how I can fix this? Thanks.
__________________
X-Cart version 4.1.11 (Unix)
Apache version 1.3.41 (Unix)
MySQL version 5.0.67 - community
PHP version 5.2.5
PERL version 5.8.8
http://www.etekmart.com
Reply With Quote
  #67  
Old 07-06-2007, 10:48 AM
 
RCTOYS RCTOYS is offline
 

Member
  
Join Date: Apr 2007
Posts: 28
 

Default Re: Improved minicart display

Hello,

Try this and tell us if it works fine.

1 . Backup the files :

/minicart.php
/skin1/customer/main/minicart.tpl

2 . Modify PHP code :

In /minicart.php

Before :

Code:
?>

Add :

Code:
$smarty->assign("minicart_coupon", $cart["coupon_discount"]); // Minicart Custom par Fabian $smarty->assign("minicart_taxes", $cart["taxes"]); // Minicart Custom par Fabian

3 . Modify TPL code :

In /skin1/customer/main/minicart.tpl

Replace :

Code:
<td class="MiniCartTextTiny"><a title="{$minicart_delivery}">{$lng.lbl_shipping_cost}:</a></td><td align="right" class="MiniCartTextTiny"><a title="{$minicart_delivery}">{include file="currency.tpl" value=$minicart_shipping}</a></td> </tr> </table>

By :

Code:
########################################################## # START : Shipping costs with Tax & Coupon code displayed ########################################################## #<td class="MiniCartTextTiny"><a title="{$minicart_delivery}">{$lng.lbl_shipping_cost}:</a></td><td align="right" class="MiniCartTextTiny"><a title="{$minicart_delivery}">{include file="currency.tpl" value=$minicart_shipping}</a></td> #</tr> #</table> {foreach key=tax_name item=tax from=$minicart_taxes} {/foreach} {math assign="taxe" equation="1+(rate/percent)" rate=$tax.rate_value percent=100} {math assign="taxed_shipping" equation="price*taxe" price=$minicart_shipping taxe=$taxe} <td class="MiniCartTextTiny"><a title="{$minicart_delivery}">{$lng.lbl_shipping_cost}:</a></td><td align="right" class="MiniCartTextTiny"><a title="{$minicart_delivery}">{include file="currency.tpl" value=$taxed_shipping}</a></td> </tr> {* START : Display Coupon Code amount *} {if $minicart_coupon ne 0} <tr> <td class="MiniCartTextTiny">{$lng.lbl_discount_coupon}:</td><td align="right" class="MiniCartTextTiny"><font color="green"><b>- {include file="currency.tpl" value=$minicart_coupon}</b></font></td> </tr> {/if} {* END : Display Coupon Code amount *} </table> ########################################################## # END : Shipping costs with Tax & Coupon code displayed ##########################################################

Regards

Fabian
__________________
X-CART GOLD 4.1.7
ADDONS : X-RMA | X-AOM | X-MAGNIFIER
HACKS : MINICART MAGNIFIER
Reply With Quote
  #68  
Old 07-09-2007, 01:11 AM
 
stickygoblin stickygoblin is offline
 

Advanced Member
  
Join Date: Apr 2006
Location: Gloucester, UK
Posts: 34
 

Arrow Re: Improved minicart display

Fabian - yep that does the trick!

just a not though if you want to only show the taxed shipping without the pre tax price just take out the lines displaying the pre tax prices.

Works like a charm although not tested the coupons bit as yet.

If you are going to copy and paste the code be sure to comment out some of the # lines as they will print to screen.
__________________
X-cart custom design and implementation specialists based in the UK

X-Cart Version :: 4.1.9
Running on :: Linux 9.3 with Plesk 8.2
Webserv :: Apache Tomcat 4.1.24-full.2jpp
mySQL :: 4.1.20
PHP :: 5

http://www.19dozen.com
http://www.a1automodels.com
http://www.norinse.co.uk
http://www.akw-medicare.com
http://www.akw-medicare.eu
http://www.ironmongery2u.com
http://www.carperformanceuk.co.uk
Reply With Quote
  #69  
Old 07-11-2007, 12:10 AM
 
stickygoblin stickygoblin is offline
 

Advanced Member
  
Join Date: Apr 2006
Location: Gloucester, UK
Posts: 34
 

Default Re: Improved minicart display

Hi,

After implementing this i have now found that i have some anomalies with my shipping (probably not the minicart itself). The problem occurs if, for example you add a 2oz conditioner and a 2oz shampoo,it seems to add a few pence per item to the shipping - i have checked and double checked these items for special freight. Even if you have a couple of 16oz and an 8oz shampoo int he basket as soon as the 2oz item is added it goes out by a few pence.

If i select No Rinse Body Bath (2oz) x1 and a No Rinse Shampoo (2oz) x1 total weight is 160g which is £1.72 shipping - which is what the minicart shows but if i go to the checkout the cost become £1.97...

If i select No Rinse Shampoo (2oz)x2 and nothing else then the checkout and minicart result is correct.

Any suggestions welcome - try it for yourself at http://www.norinse.co.uk

thanks

sticky
__________________
X-cart custom design and implementation specialists based in the UK

X-Cart Version :: 4.1.9
Running on :: Linux 9.3 with Plesk 8.2
Webserv :: Apache Tomcat 4.1.24-full.2jpp
mySQL :: 4.1.20
PHP :: 5

http://www.19dozen.com
http://www.a1automodels.com
http://www.norinse.co.uk
http://www.akw-medicare.com
http://www.akw-medicare.eu
http://www.ironmongery2u.com
http://www.carperformanceuk.co.uk
Reply With Quote
  #70  
Old 08-11-2007, 10:33 PM
 
zebu zebu is offline
 

eXpert
  
Join Date: Oct 2006
Posts: 310
 

Default Re: Improved minicart display

I am running 4.1.8 and it worked fine - however teh Grand total wasnt adding up - even thou the shipping was defined correctly (including tax) teh grand total displays a toal less the shipping tax.

To fix I had to modify this line in minicart.tpl

Original

HTML Code:
minicarttotalcost=$minicart_total_cost minicartshipping=$minicart_shipping}

Modified

HTML Code:
minicarttotalcost=$minicart_total_cost minicartshipping=$taxed_shipping}

Hope that helps.
__________________
Version 4.7.7
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:49 PM.

   

 
X-Cart forums © 2001-2020