In the session, what do I check for to see if logged in? When logged in I get the customers name ID, etc. Is it reliable to see if $_SESSION['customer_id'] is set as a means of determining log in...
Type: Posts; User: lightnb
In the session, what do I check for to see if logged in? When logged in I get the customers name ID, etc. Is it reliable to see if $_SESSION['customer_id'] is set as a means of determining log in...
I need a way for JavaScript (without an AJAX call) to know if the user is logged in or not. I suspect the best way to do this is to check a cookie. The ZenID is always set, regardless or whether a...
I'm setting a session variable on a non-zen cart page (ad tracking url), and then sending a 301 redirect to a zen cart product page. This is for tracking inbound clicks for an ad campaign.
...
Hi everyone,
I've created a new Page Module (By creating a folder in "includes/modules/pages", and adding a "header_php.php" file there.)
It loads when I go to "index.php?main_page=my_page".
...
I'm not trying to add anything outside of Zen Cart. I just want to know what form values I need to make an "add to cart" form.
Somewhere in the cart, there is a function that receives form input,...
I guess I didn't specify "to the cart". The product is already in the database.
Normally, on the product info page, there's a quantity box and an "add to cart button". There's also a hidden input...
A couple questions then:
1. Where is the appropriate place in the cart to add a class file? In includes/classes with the "Official" ones? Or is there an override/user class folder?
I've got a...
Hi everyone,
I've found lots of posts in the forums asking for both Chained Attributes (ie. Color dependent on Size, etc), and inventory by attribute. Has anyone created an Add-On for these...
Is it possible to add a product using a hyperlink instead of the "Add Product Form", If I know the product ID and the quantity?
ie:
<a...
Cool, Thanks guys!
Is there anyway to call a side box anywhere in the page? I saw the "sideboxes anywhere" contribution, but that seems to apply to the entir site, not whithin Zen Cart itself. I'd...
Thanks Wilt,
It would be cool if there were a "developer's manual" or similar, that explained all the objects, variables, and the program flow...
One more question: I need to load a javascript...
1. Where is the appropriate place in the cart, to set the php error_reporting variable to "E_NOTICE"?
2. What does "$db->Execute()" actually return, and what can I put in my foreach loop to cycle...
The file "tpl_columnar_display.php" contains a variable "$title", and an array "$list_box_contents".
Where do these variables come from?
I don't know if you found a solution to this or not, but if not, here's what to try:
make sure your custom config files, ie "www.yoursite.com_config.php" are in the "/includes/config_sites"...