Forums / Basic Configuration / Change shopping cart layout

Change shopping cart layout

Locked

Views: 1,954

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
4 Jan 2007, 2:42 PM
#1
trickyireland avatar

trickyireland

New Zenner

Join Date:
Nov 2006
Posts:
19
Plugin Contributions:
0

Change shopping cart layout

Hi Everyone,

I have always searched the forums for any problems but on this occasion i am unable to find the answer.

I want to change the layout of my shopping cart to display

Items: 0
Value: 0

Go To Checkout

The Value will be updated each time an item is added etc.
I currently have a MOD installed which displays a picture of the item in the cart within the shopping cart layout box. I would like to reverse the process of this and have simple information like above.

If anyone remembers the name of the above mod or any instructions how to remove it that would be great also.

Thanks again for the help

4 Jan 2007, 2:43 PM
#2
md5577 avatar

md5577

New Zenner

Join Date:
Feb 2005
Location:
Belle Vernon, Pa
Posts:
28
Plugin Contributions:
0

Re: Change shopping cart layout

TrickyIreland:

Hi Everyone,

I have always searched the forums for any problems but on this occasion i am unable to find the answer.

I want to change the layout of my shopping cart to display

Items: 0
Value: 0

Go To Checkout

The Value will be updated each time an item is added etc.
I currently have a MOD installed which displays a picture of the item in the cart within the shopping cart layout box. I would like to reverse the process of this and have simple information like above.

If anyone remembers the name of the above mod or any instructions how to remove it that would be great also.

Thanks again for the help

Which version of the cart are you running?

4 Jan 2007, 3:46 PM
#3
trickyireland avatar

trickyireland

New Zenner

Join Date:
Nov 2006
Posts:
19
Plugin Contributions:
0

Re: Change shopping cart layout

Hi Mike thanks for the reply,

I am using 1.3.6

Since posting my question i have downloaded and installed Shopping cart summary mod from the downloads section.

I now have

Items: 0
Value: 0

But unable to workout where to put the html code for the link to the checkout page.
Any help appreciated

4 Jan 2007, 5:35 PM
#4
bombknex avatar

bombknex

New Zenner

Join Date:
Sep 2006
Location:
Madison, WI
Posts:
54
Plugin Contributions:
0

Re: Change shopping cart layout

Find **tpl_shopping_cart.php **in **includes/templates/YOUR_TEMPLATE/sideboxes/

**Look for line 46 where this code appears:

if ($_SESSION['cart']->count_contents() > 0) {
    $content .= '<hr />';
    $content .= '<div class="cartBoxTotal">....

In that block you can input anything else you like. In my site I put some little icons for viewing the cart and going to checkout. The code for the checkout page is:

<a href="' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '" alt="Checkout" title="Checkout">Checkout</a>

You could also just hard code it too by copying and pasting the URL that displays when you go to checkout...

Here's a great tip for the future... Use the Developers Tool Kit in the ZC admin. It's works wonders for this kind fo stuff. That combined with viewing the source to find what your looking for (classes or id's that you can search for using the Dev Tool Kit).

Good luck!

9 Jan 2007, 5:24 PM
#5
trickyireland avatar

trickyireland

New Zenner

Join Date:
Nov 2006
Posts:
19
Plugin Contributions:
0

Re: Change shopping cart layout

thanks bomb, sorry for the late reply, i have not been on the site in a few days.

I tried to use your suggestion however unfortunatly because i am using the shopping cart summary mod from downloads the code is different.

As soon as i try to add a href the cart falls apart and spits out errors causing me to revert back to standard code.

I really like the look of your site, you have done alot of good work there, are you still using 1.3.6 or have you upgraded? i noticed the log in page is split.

Thanks again