Woo Hoo! That was quick! Many Thanks!Originally Posted by DrByte
Woo Hoo! That was quick! Many Thanks!Originally Posted by DrByte
DrByte-
Comparing the stock core v.1301 and v.1302 product_listing.php files, I observe the following code fragment early in the file was removed from product_listing.php in v.1302:
However in the product_listing.php included in the updated "Column Layout Grid for Product Listing for 1.3.0.2" that code fragment remains. Can you confirm if needed for the Column Layout Grid mod? Thanks.Code:// needs a better check v1.3.1 if (PRODUCT_LISTING_MULTIPLE_ADD_TO_CART != 0 and $show_submit == true and $listing_split->number_of_rows > 0) { // bof: multiple products // $chk_attributes = $db->Execute($listing_sql); $chk_attributes = $db->Execute($listing_split->sql_query); while (!$chk_attributes->EOF) { if ($chk_attributes->fields['product_is_call'] == 0) { if (zen_get_products_allow_add_to_cart($chk_attributes->fields['products_id']) !='N') { if ((SHOW_PRODUCTS_SOLD_OUT_IMAGE == 1 and $chk_attributes->fields['products_quantity'] > 0) or SHOW_PRODUCTS_SOLD_OUT_IMAGE == 0) { if (zen_has_product_attributes($chk_attributes->fields['products_id']) < 1 and $chk_attributes->fields['products_type'] != 3) { $how_many++; } } } } $chk_attributes->MoveNext(); } if ($how_many >= 1) { echo zen_draw_form('multiple_products_cart_quantity', zen_href_link(FILENAME_DEFAULT, zen_get_all_get_params(array('action')) . 'action=multiple_products_add_product'), 'post', 'enctype="multipart/form-data"'); } }
Woody
Um ... that would make things interesting, wouldn't it .....
It should be removed.
Contribution updated
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
ZEN_CART_HOME_DIR/includes/modules/YOUR_TEMPLATE/product_listing.php
Hmmmmmm......... But i dont have any template_Folder in /includes/modules/![]()
How to do then??????? However i have a product_listing.php in /includes/modules/
When write 3 in Product Listing - Columns Per Row i got 2 rows. Write 4 and i get 3 rows ???
It seems that one row is always emty ??
If i write 4 in Product Listing - Columns Per Row i will somtimes get 1 product per row and somtimes mixed 1 per row, 3 per row, 2 per row, 1 per row, 2 per row,![]()
AND..It also shrunk the center area.
See: http://siamonnet.se/babystore/index....=index&cPath=1
Create the folder ;-)Originally Posted by PeterBKK
Most Zen Cart documentation states that if you observe a "custom" folder already present in a directory, then that indicates overrides are suppose to work. So in the same directory create a new folder with the name of your template, and place your modified file(s) there.
Note I have had mixed success overriding modules. I don't know why, most my module overrides work, but some times they do not. In these cases I overwrite the core module files (after backing up of course).
In this particular case overriding the core product_listing.php with the version DrByte provided in the Column product listing mod update works well in v.1302.
Woody
I did not even had a classic folder in /modules/ so i replaced the product_listing.php in /modules/ Cold i do that or should i undo it as i had so many problems???
ops... I did had one classic folder![]()
![]()