These files are defined under...
modules/pages/PAGETYPE/jscript_main.php
eg the javascript for the product info page is saved at
modules/pages/product_info/jscript_main.php
zen cart questions
Jotting down my own questions I have whilst working with Zen Cart. Mostly for my own back-reference, but will hopefully help people with the same issues.
Saturday, 23 October 2010
How do I add a second stylesheet?
The header elements are created under /yourtemplate/common/html_header.php
It works by adding any css file named "style*.css" under your template's css folder to the page head, or you can hard code the link here.
It works by adding any css file named "style*.css" under your template's css folder to the page head, or you can hard code the link here.
How do I link to the shopping cart?
Use the zen_href_link function as follows...
<a href="'.zen_href_link(FILENAME_SHOPPING_CART).'">
<a href="'.zen_href_link(FILENAME_SHOPPING_CART).'">
How to I change the "ea." in the shopping cart?
This is generated by a variable called BOX_SHOPPING_CART_DIVIDER.
This is set in includes/languages/english.php
This is set in includes/languages/english.php
Friday, 22 October 2010
How do I upload multiple images?
1. Name your images NAMEOFIMAGE.jpg, NAMEOFIMAGE_01.jpg, NAMEOFIMAGE_02.jpg
with the ones with numbers as the sub images.
2. Upload a numbered one when you create your product.
3. Edit the product, and select another numbered item to upload.
4. When all numbered items are uploaded, upload the original NAMEOFIMAGE.jpg one.
with the ones with numbers as the sub images.
2. Upload a numbered one when you create your product.
3. Edit the product, and select another numbered item to upload.
4. When all numbered items are uploaded, upload the original NAMEOFIMAGE.jpg one.
Tuesday, 19 October 2010
How do I move the product attributes above the buy button?
The file templates/*yourtemplate*/templates/tpl/products/info_display.php
has comment tags showing where each section begins and ends, so simply move the bit which starts
<!--bof Attributes Module -->
and ends
<!--eof Attributes Module -->
above the
<!--bof Add to Cart Box -->
section.
has comment tags showing where each section begins and ends, so simply move the bit which starts
<!--bof Attributes Module -->
and ends
<!--eof Attributes Module -->
above the
<!--bof Add to Cart Box -->
section.
Monday, 18 October 2010
How do I disable products appearing as "sold out"?
These settings are under configuration - stock.
If a product is manually set to out of stock on the product page, it will simply vanish from the site.
If a product is manually set to out of stock on the product page, it will simply vanish from the site.
Subscribe to:
Posts (Atom)