Forums / Upgrading from 1.2 to 1.3.x / Quick Fixes For V1.3.0.1

Quick Fixes For V1.3.0.1

Locked

Started by ajeh on 25 Apr 2006, 11:21 PM · Views: 8,523

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
25 Apr 2006, 11:21 PM
#1
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Quick Fixes For V1.3.0.1

Problem: Update Shopping Cart buttons problem when set to 2 (Below all Products)

Solution: edit line 125 in the file
/includes/modules/pages/shopping_cart/header_php.php

Change to read:

  $buttonUpdate = ((SHOW_SHOPPING_CART_UPDATE == 1 or SHOW_SHOPPING_CART_UPDATE == 3) ? zen_image_submit(ICON_IMAGE_UPDATE, ICON_UPDATE_ALT) . zen_draw_hidden_field('products_id[]', $products[$i]['id']) : zen_draw_hidden_field('products_id[]', $products[$i]['id']));

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

26 Apr 2006, 4:38 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Quick Fixes For V1.3.0.1

Default Sort order for "All Products" listing not working.

Workaround:
includes/modules/pages/products_all/header_php.php
line 18 says:$disp_order_default = PRODUCT_FEATURED_LIST_SORT_DEFAULT;change it to:```
$disp_order_default = PRODUCT_ALL_LIST_SORT_DEFAULT;

.
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.

29 Apr 2006, 2:38 AM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Quick Fixes For V1.3.0.1

Problem: meta tags description not complete

Solution: edit the file /includes/functions/functions_general.php

Find the function zen_truncate_paragraph at approximately line 1308 and replace the whole function with:

////
// return truncated paragraph
 function zen_truncate_paragraph($paragraph, $size = 100, $word = ' ') {
  $zv_paragraph = "";
  $word = explode(" ", $paragraph);
  $zv_total = count($word);
  if ($zv_total > $size) {
   for ($x=0; $x < $size; $x++) {
    $zv_paragraph = $zv_paragraph . $word[$x] . " ";
   }
   $zv_paragraph = trim($zv_paragraph);
  } else {
   $zv_paragraph = trim($paragraph);
  }
  return $zv_paragraph;
 }

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

29 Apr 2006, 2:43 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Quick Fixes For V1.3.0.1

Problem: only if Product Listing is set to just show Product Name Advance Search Results throws an error

Solution: edit the file:
/includes/modules/pages/advanced_search_result/header_php.php

At approximately line 181 change the IF condition to read:

// always add quantity regardless of whether or not it is in the listing for add to cart buttons
if (PRODUCT_LIST_QUANTITY < 1) {
  if (empty($select_column_list)) {
    $select_column_list .= ' p.products_quantity ';
  } else  {
    $select_column_list .= ', p.products_quantity ';
  }
}

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

22 Jun 2006, 3:05 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Quick Fixes For V1.3.0.1

.
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.