{docurl}
I am integrating the reorder ability in Order Status mod for Merchant5. The only thing I can't get to work is the conditional for disallowing inactive products. I am using:
%begin_if|Products.d.active|%
%quantity|001|%
%addtobasket%
%end_if%
%begin_if|NOT Products.d.active|%
NOT AVAIL
%end_if%
It is always showing NOT AVAIL even if the product is active.
The problem with the %begin_if not working has to do with the way
Merchant 5x works. In 4.x once the Products database was open and
pointing to the correct database you could access the data directly
with the database fields. In 5.x Merchant opens the databases only long
enough to read the data once, then closes them. To counter this I have
loaded the product data into a structure g.StatusProduct that can be
accessed in the %begin_if code. Basically, in your code, replace
Products.d. with g.StatusProduct:.
eg. your code becomes:
%begin_if|Pg.StatusProduct:active|%
%quantity|001|%
%addtobasket%
%end_if%
%begin_if|NOT g.StatusProduct:active|%
NOT AVAIL
%end_if%
Last update: 2007-03-29 09:57
Author: Thor
Revision: 1.0
You cannot comment on this entry
Records in this category
- I am integrating the reorder ability in Order Status mod for Merchant5. The only thing I can't get to work is the conditional for disallowing inactive products. I am using:
%begin_if|Products.d.active|%
%quantity|001|%
%addtobasket%
%end_if%
%begin_if|NOT Products.d.active|%
NOT AVAIL
%end_if%
It is always showing NOT AVAIL even if the product is active. - How do I display the attribute and option data on the order details page?
- Is there a new FedEx tracking number?
- Default tracking links for shippers
- When customers click on the link to check their status, the login screen shows Merchant's usual header for that page and also the header from the Order Status Manager. How can I hide the Merchant header?
- Is it possible to collect a note at checkout that will be associated with the order in admin?
- Displaying collected data in emails and on the invoice (INVC) screen
- Displaying custom field data
- New FedEx tracking link
- Displaying additional information on the "Edit Status" orders listing














