Wonderful contribution!
But I can't see in product info the end date of promotion :-(
Printable View
Wonderful contribution!
But I can't see in product info the end date of promotion :-(
Please, see this page:
http://www.100asab2b.it/zen/pistola-...nge-p-248.html
this offer end 30/10, but in the the page I can't see this date, end date of offer.
Hi!
I want to say that you've made a great contribution to zen-cart!
I have just a little problem:
When I use
<!--#AddToCart#-->
The attributes and the add-to-cartbox come on the first tab, in the right order. I want to have the attributes and cart on the second tab, so I use this:
<!--*sub_AttributeOptions(2)*-->
<!--*sub_AddToCart(2)*-->
The attributes and the add-to-cart box come on the right tab, but in the wrong order!
the add-to-cart box is above the attributes.
can you help me?
Currently, ordering them is not possible. The reason they show up correct on the first tab is because for that one I made a table to keep all of that stuff in line. But on the sub tags, they just go by the default order I've set in the code, which is just the default zen-cart way.
But it is simple to change it to the way you want it. To get the Attribs above the add to cart, edit the:
/includes/templates/YOURTEMPLATE/templates/tpl_tabbed_products_lite_subtabs.php file
Cut line 57-68
And paste it above line 24:Code:<!-- bof sub_AttribOptions -->
<?php if (strpos($proddata, $sub_AttributeOptions . $a . ")*-->") > 0) { ?>
<!--bof Attributes Module -->
<?php
if ($pr_attr->fields['total'] > 0) {
// display the product atributes
echo '<br />';
require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php');
} ?>
<!--eof Attributes Module -->
<?php } ?>
<!-- eof sub_AttribOptions -->
That will put those attribs above the add to cart button.Code:<!-- sub_AddToCart -->
It's possible to have a new filed called "tech sheet", in admin too, where I can write the tech info product?
Plase, let me know.
a tech sheet for a tab name? You can have any tabname you want by adding the tags to the product description area with <!--%Tech Sheet%-->
I also notice that on your site you probably need to run the other sql file included in the package called 3.6AlternativeForSqlProblems.sql
Regarding the database sql problems that some people are having.
If you goto Admin->Configuration->Tabbed Products Config and see only ONE option, then you must run the AlternativeSQL file that I included with the release to fix your problem.
I finally got smart and learned how to properly use mysql variables in queries (actually unbelievably simple). Now the SQL query coming in version 3.8 should work just fine. Previously, I was using the same query style that the TY Package Tracker used, which also gave me the same problem with giving only one admin configuration option, and the User Tracking contrib which used a hard coded gID for the Alternativesql file.
The first method used was the best dynamically because it was supposed to autoincrement the gID and use that same number to map the configurations to that gID. The problem is that last_insert_id() is a willy-nilly function that may or may not auto-increment itself with each run. I've seen it work fine on my server and then try again and it gives the "only one option in the tpl config screen" problem. So it was too unstable for perfect use. The Alternative method used a hard code of 888 for the gID, similarly how UserTracking used a hardcode of 999. if you were to ever install that many configurations tho, (not likely) you might have some overlap.
The new version adds the config group stuff first, and then gets that number and saves it to a mysql variable for the rest of the config options to ensure that even when the number is dynamically created, it is used to properly map the rest of the config options to the configuration group that it designated.
This sql patch will come with version 3.8.
Being a recent convert from osCommerce to ZenCart, I am just now playing catch-up with coding, customizing, and modules. I can see the advantage this module provides and have a quick question.
Do I understand correctly that this module works in conjunction with this file:
includes/templates/template_default/templates/tpl_product_info_display.php
If yes and one has done some heavy customizing to the above file, will that cause a problem with the TP module, any version?