Forums / Templates, Stylesheets, Page Layout / shopping cart button location

shopping cart button location

Locked

Views: 2,194

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
31 Jul 2008, 5:05 PM
#1
natallia avatar

natallia

New Zenner

Join Date:
Apr 2008
Location:
Canada
Posts:
62
Plugin Contributions:
0

shopping cart button location

Helo everybody! Could someone please help me to change the location of the "shopping cart link? Right now it appears at the very top right corner after you add a product to it and is not easy to spot ( people have been calling, asking where on earth is our shopping cart button???)
Ideally I would like it to be a button right under the head banner on the right side where it tell you how many items you have in your cart. If it's really complicated - I am willing to pay someone to make it for us! Thank you so much!

31 Jul 2008, 6:12 PM
#2
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: shopping cart button location

Natallia:

If it's really complicated - I am willing to pay someone to make it for us! Thank you so much!

Let's see if we can guide you through this without you having to spend cash!

The STRUCTURE of the PRODUCT INFO page can be altered by editing:-

tpl_product_info_display.php

... and I guess you'll find your version of that file in:-

includes/templates/theme021/templates/tpl_product_info_display.php

  1. BACKUP that file to your hard drive, so if you mess up changes, you have the original file to restore to your server.

  2. OPEN a copy (on your local machine) to edit. Use a PLAIN TEXT EDITOR, such as Notepad++ (notepad plus-plus), or Crimson Editor (both free on the WWW).

  3. You will see that the page components are divided into SECTIONS, split by the following:-

<!--bof xyzxyzxyz -->

and

<!--eof xyzxyzxyz -->

If you scroll through the file you will see:-

<!--bof Product Price block -->

(then a whole lot of PHP code here

<!--eof Product Price block -->
  1. (somewhat further down...)
<!--bof Add to Cart Box -->

(then a whole lot of PHP code here

<!--eof Add to Cart Box -->

It is these BOF and EOF sections that control WHERE the component appears.

SO, if you highlight the section with your mouse:-

<!--bof Add to Cart Box -->

(then a whole lot of PHP code here

<!--eof Add to Cart Box -->

... then CUT it...

... then scroll to:-

<!--bof Product Price block -->

(then a whole lot of PHP code here

<!--eof Product Price block -->

and PASTE it underneath this... so you get

**<!--bof Add to Cart Box -->
(then a whole lot of PHP code here

<!--eof Add to Cart Box --> <!--bof Product Price block -->

(then a whole lot of PHP code here

<!--eof Product Price block -->**

Then SAVE the file...

You will now have ADD TO CART appearing next to/under the PRICE BLOCK.

Send this to your server, in the appropriate directory. It will OVERWITE the original (but you have a backup on your hard drive).

See what happens!...

31 Jul 2008, 6:22 PM
#3
natallia avatar

natallia

New Zenner

Join Date:
Apr 2008
Location:
Canada
Posts:
62
Plugin Contributions:
0

Re: shopping cart button location

Thank you so much... :hug: I will try this right now.

31 Jul 2008, 6:35 PM
#4
natallia avatar

natallia

New Zenner

Join Date:
Apr 2008
Location:
Canada
Posts:
62
Plugin Contributions:
0

Re: shopping cart button location

I don't have this file: tpl_product_info_display.php in here:
public_html / includes / templates / theme021 / templates / (Current Folder)

instead I have all this:
tpl_checkout_payment_default.php
tpl_checkout_success_default.php
tpl_ezpages_bar_footer.php
tpl_ezpages_bar_header.php
tpl_index_categories.php
tpl_login_default.php 4 k 0644
tpl_modules_no_account.php
tpl_modules_products_all_listing.php
tpl_modules_products_new_listing.php
tpl_no_account_default.php
tpl_products_all_default.php
tpl_shopping_cart_default.php
tpl_time_out_default.php

is there a diff. place I can look??? Thank you!

1 Aug 2008, 7:41 AM
#5
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town &amp; London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: shopping cart button location

... Then it will be in:-

includes/templates/template_default/templates/

This will be the ORIGINAL file, so don't edit that one.

FTP a COPY to your local drive. When you are finished editing, send it to:-

public_html / includes / templates / theme021 / templates /

Like all the other files in this folder (which you listed above) YOUR new copy of tpl_product_info_display.php is now an OVER-RIDES file, and your webshop will read that file BEFORE it looks for the **default **file (which as you now know is in the template_default/templates folder).

In addition to editing this file, you have probably also learned something about the OVER-RIDES system in ZC.

1 Aug 2008, 7:55 AM
#6
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town &amp; London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: shopping cart button location

Natallia

I just re-read your FIRST POST and I have given you incorrect advice for the question you asked.

I thought you wanted to move the ADD TO CART BUTTON at the bottom.

I see you want to move the SHOPPING CART link at the top right. As you appear to be using a Proprietary template, I can't advise on how to do this as I don't know the template structure.