Zen Cart Logo
Forums / Basic Configuration / How to place a Add To Cart icon in product

How to place a Add To Cart icon in product

Locked

Views: 3,216

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
15 Apr 2007, 9:55 AM
#1
visionarygodess avatar

visionarygodess

New Zenner

Join Date:
Apr 2007
Posts:
7
Plugin Contributions:
0

How to place a Add To Cart icon in product

Hi All

I have been having a bit of trouble adding the icon where it says Add To Cart in each product. I have looked in the faqs, but don't get how to go about doing it. The help section says to go to...

  1. You're looking for /includes/templates/YOURTEMPLATE/templates/tpl_product_info_display.php

I don't understand how to get to

/includes/templates/YOURTEMPLATE/templates/tpl_product_info_display.php

in the first place! Where do I go to locate that section in the first place.

I am so confused. Also how do I change the colours of the shopping site. There is only that green colour, and I don't know how to add any others.

Thanks all.

G

15 Apr 2007, 7:12 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to place a Add To Cart icon in product

Could you check first, before touching any code, that you have in the Configuration ... My Store ... set the Store Status to Normal?

Store Status
What is your Store Status
0= Normal Store
1= Showcase no prices
2= Showcase with prices

16 Apr 2007, 10:37 AM
#4
visionarygodess avatar

visionarygodess

New Zenner

Join Date:
Apr 2007
Posts:
7
Plugin Contributions:
0

Re: How to place a Add To Cart icon in product

Thanks for your replies guys.

Ajeh - My store status is set to Normal.

The Oracle - I had a look at that link. Unfortunately it doesn't help me because it tells you to go the the directory of

includes/languages ...etc which I have no idea how to get to in the first place!

How do I get there? Do I type that into the search browser? I tried that and to no avail.

16 Apr 2007, 9:26 PM
#5
theoracle avatar

theoracle

Suspended

Join Date:
Aug 2004
Posts:
3,180
Plugin Contributions:
1

Re: How to place a Add To Cart icon in product

How do I get there?

The developers tool kit is your best friend for that. In your admin - > tools - > developers tool kit, you can seek for this phrase for example:

Add To Cart in each product

On your left is the textbox where to put your queries. On the right, the dropdown list (at least the first), will seek for definition names. Once you submit, it should return, as results, in which file exacly that phrase is actually located. :wink2:

16 Apr 2007, 9:27 PM
#6
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: How to place a Add To Cart icon in product

how about a link,
zen cart already adds a button on each product

17 Apr 2007, 12:09 PM
#7
visionarygodess avatar

visionarygodess

New Zenner

Join Date:
Apr 2007
Posts:
7
Plugin Contributions:
0

Re: How to place a Add To Cart icon in product

The Oracle - I have used the developers tool kit. The file name it returns...I cannot find! Any clues? I have noticed some people's shopping carts as they have provided links, and they look great. I don't know how to do simple things.

Is there any way anyone could guide me step by step? I am just not getting any results and am feeling frustrated. I have been on the project for weeks on end!

Merlinpa - Zencart has not added an add to cart button on my products. That's what I"m trying to find out what to do. I'd prefer the button rather than the link.

Thanks again for the help.

19 Apr 2007, 2:20 AM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to place a Add To Cart icon in product

Could you check the settings in Catalog ... Product Types ... all should be set for Add to Cart Y except the Document General ...

19 Apr 2007, 12:59 PM
#9
visionarygodess avatar

visionarygodess

New Zenner

Join Date:
Apr 2007
Posts:
7
Plugin Contributions:
0

Re: How to place a Add To Cart icon in product

Thanks Ajeh.

**Now I have another problem! I am testing the checkout with Paypal and it comes back with an error. **

The error says there is an array merge. Gives me the directory and then a line number. How do I fix this line? Where do I find it?

For eg, the help section says...

Warning: Cannot modify header information - headers already sent by (output started at /....includes/something/something/something.php:12) in ..../includes/something_else.php on line 67

Solution -

Summary:
a) look for where it 'started at'
b) track the line number
c) check what's normally happening on that line.
--- If it's the end of the file, then it's blank spaces.
--- If it's the start of the file, it's likely spaces.
--- Elsewhere it could be a syntax error or the result of an "echo()" statement which is displaying info or perhaps debug code.
d) the rest of the info simply shows other execution information, mainly the part of the code that discovered that it cannot proceed as expected due to the problem that happened in the 'started at' location.

So how do I track the line number? Where is it?

Thanks again for everyone's help! I feel like I'm finally getting somewhere.

19 Apr 2007, 2:00 PM
#11
visionarygodess avatar

visionarygodess

New Zenner

Join Date:
Apr 2007
Posts:
7
Plugin Contributions:
0

Re: How to place a Add To Cart icon in product

Hi Ajeh

I have just installed the patch. Hopefully I have done it correctly. I removed the paypal express checkout in the admin zencart and reinstalled it. I hope I installed the patch right. I just kept pressing yes. But it still seems to have made no difference and I still get those error messages when trying to checkout in Paypal. I don't know where to locate those lines.

Thanks for your patience. I really have no idea what I'm doing!

19 Apr 2007, 2:05 PM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to place a Add To Cart icon in product

Can you post the exact error message?

19 Apr 2007, 2:19 PM
#13
visionarygodess avatar

visionarygodess

New Zenner

Join Date:
Apr 2007
Posts:
7
Plugin Contributions:
0

Re: How to place a Add To Cart icon in product

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/websitename/public_html/cart/includes/modules/payment/paypalwpp.php on line 1467

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/websitename/public_html/cart/includes/modules/payment/paypalwpp.php on line 1467

Warning: Cannot modify header information - headers already sent by (output started at /home/visionar/public_html/cart/includes/modules/payment/paypalwpp.php:1467) in /home/websitename/public_html/cart/includes/modules/payment/paypalwpp.php on line 1492

Warning: Cannot modify header information - headers already sent by (output started at /home/visionar/public_html/cart/includes/modules/payment/paypalwpp.php:1467) in /home/websitename/public_html/cart/includes/functions/functions_general.php on line 44

Thank you again! I've just changed "websitename" from what my site is called.

21 Apr 2007, 1:56 PM
#14
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How to place a Add To Cart icon in product

And you are sure that you have the latest PayPal patch installed?
http://www.zen-cart.com/forum/showthread.php?t=56216

Also, uninstall and reinstall the PayPal module and reconfigure it ...