This sounds like an interesting solution. Any idea where/which files to get started? I may want to give it a try and see how it works.
Thanks
Type: Posts; User: Cindy2010
This sounds like an interesting solution. Any idea where/which files to get started? I may want to give it a try and see how it works.
Thanks
(Searched this but the previous post was in 2004 and the answer was no. Just want to see if there was any update)
There is a function that allows me to setup currency rate so it will automatically...
Does anyone happen to know how to map the links for things like:
mysite.com/index.php?main_page=xyz
To be exact, I have a few pages like:
mysite.com/index.php?main_page=xyz&id=abc...
Hello,
On my site I have a few pages under the url like:
?main_page=xyz
For example, "specials", "warranty", "contact_us" (-- some of them were installed from add-ons. zen version 1.3.9.h)
...
Thanks for the follow up! Yes, I just realized there is no way to fine control the "connection pool" in PHP, so maybe let the system auto select the link will be a better idea.
Thanks DrByte!
This works for me:
mysql_affected_rows($db->link)
That's different -- I actually see many places in zen cart that having this problem, and here is the problem:
We first do a select, for example, we find we need to update 5 rows.
When a update...
It is:
After execute a standard update statement via:
$result = $db->Execute($sql);
how do I know how many rows were actually updated in database?
(I looked around and can't find a better place to ask this question, hope someone here knows the answer)
I am writing customized code to update some status in a table in zen cart, something like: ...
Hello,
I have an existing category that has some products in it already. However, I need to reorganize them: instead of putting all products under one category, now I want to create multiple...
Maybe let me explain a little bit what I mean here:
For the standard document type catelog listing page, there are columns of:
column 1) product image,
column 2) product title plust the first...
Hello,
Since for document type products, most of them don't have product images in my case, is there a way (even through coding or a quick hack) to hide all the images in the category listing...
In my case, I need post. Do you mind to tell me where zen cart unsets the post variables?
But it still does not work. Also, $_REQUEST supposes to include $_POST and $_GET. http://php.net/manual/en/reserved.variables.request.php
PS: if I use GET, it works. POST does not work.
I just noticed a strange this:
I created a new php file under admin\test.php. And I am trying to use something like:
$myvar = $_REQUEST["thevar"];
to get the POST variables from a JQuery ajax...
Hello,
Is there a function that returns the cPath value given the product ID? -- I know the cPath is simply like A_B_C, where A, B, C are its (parent) category IDs. But instead writing a code to...
Hi guys,
A quick question:
I want to define a few common functions to be used both in the non-admin area, and the admin area.
Where should I put them? -- I noticed if I put it under...
Hello,
It looks like the admin area only shows the most recent 10 days of visiter count, though this link says the database keeps more.
https://www.zen-cart.com/tutorials/index.php?article=154...
Hello,
I noticed the admin only shows the view counts of all times (reports -> products viewed). Is there a way that I can get this count daily or weekly? (I want to know which products are most...
Any particular suggestion of how we can add it to COD?
What I can think is kind of a hack: basically create a product called "COD surcharge". And at the payment selection page, if customer select...
Hello,
Does anyone know whether it is possible to add a handling fee for a particular payment module? I am thinking to add a $5 fee for COD, and I guess this should be a common use case.
...
Well, per this page:
https://www.zen-cart.com/tutorials/index.php?article=230
Looks like only sidebox under models can be override.
I tried to override the files under:
includes\modules\pages
by creating a folder of my template, but looks it does not work.
Anything special for them in terms of override?
Thanks!
Hello,
Does anyone have this issue:
Basically, my product image is kind of large, normally 800x600 pixel. But even on a large screen, the popup product image window is very small, only show...
My bad, it is just order.php under class folder. :-)
Hello,
Does anyone know in which file does the order get created? (and/or its logic?) I want to log some extra information when an order is created.
Thanks a lot.
Guess this should be simple but can't find it in google:
Is there a way that customer can redeem a coupon by simply coming to my site via a URL and I put the coupon code in the URL?
Like:...
Does anyone know how to enable it?
For example, if I have 10 special products, and I set:
Maximum Display of Specials Products - Main Page
to 3.
In the side box specials, it will have a link...
I put a try and catch block around $db->Execute($sql), but when there is database exceptions (such as 1062 Duplicate primary key error), the error will simply be printed out on the page (to be exact,...
Well, it doen't mean I can't try to learn how to make a better one. :-)
I did some search but was unable to find the answer:
I want to add a session variable, and save it to the order. What should be the best way to do that? (assume I can add a new column to the...
It works!
But any side affect of doing that?
Hello,
I just configured ssl for my site, and in the configure file under the admin/include folder, set:
define('ENABLE_SSL_CATALOG', 'true');
define('ENABLE_SSL_ADMIN', 'true');
Now I go...
Hello,
I did some search but can't find any good results on this yet.
I am thinking to setup affiliate modules, something like, for example, if customer comes to my site (and made a purchase)...
Hello,
Does anyone know how I can show the specials price information in the shopping cart (checkout page) as well?
For example, if a product is $100, and I configured it to be $80 as...
Thanks a lot!
It works!
Hello,
Does anyone know where I missed it? I configured the specials sidebox, and it shows up on the home page as well as category page. But it does not show up on the product page. Did I miss...
I have a requirement that I think was not well discussed (at least I can't find it, yet. :-):
Basically, I want to create a totally "new" page in my zen cart that:
1) this page will NOT share...
Well, the setting is in Product Info.
As I said, simple!
:clap:
Hello,
This should be quick question but I just can't find the answer:
When I setup a special price for a product, per here: ...
I tried that, it reduced the number of queries, but looks like the parse time is still high, especiall on the first hit (where there is no hit to my site in the previous 15 mins or so), it can be as...
Oh, by the way, I can't believe zen-cart.com's own page only lists these few "certified" hostings:
http://www.zen-cart.com/index.php?pages_id=10&main_page=infopages
Any luck with them?
I know this is a hard to answer question, and I tried to google it, but can't get any good results.
I have tried both ipage and fatcow, both are recommended as the "best" hosting for zen cart on...
Case closed.
FYI: the modification was done here:
tpl_account_history_info_default.php
tpl_checkout_confirmation_default.php
Actually I am thinking maybe we should handle this in a different way: instead of changing all the places to add the model name to the end of the product name, when an order is created, I assume the...
Hello,
Does anyone know where do I get the content for productDetailsList (product model)?
I took a look of the tpl_product_info_display file, but can't find there it gets the values for...
Thanks! This tells me how to turn the left/right column off. So the only question left will be: how can I know it is checkout pages? (and if I can, I only want to hide certain side boxes: the...
I am not quite follow it. Could you provide more details? (I know some php but is new to zen cart)
Thank you.
Hello,
Does anyone know how can I know if customer is on the check out pages? (select address, billing, and final order page)
Our situation is like: we have the shopping_cart sidebox on the...