Page 51 of 67 FirstFirst ... 41495051525361 ... LastLast
Results 501 to 510 of 663
  1. #501
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Recover Cart

    Probably just a simple swith in this code:

    PHP Code:
                // BEGIN OF ATTRIBUTE DB CODE
                
    $prodAttribs ''// DO NOT DELETE
                
    if (RCS_SHOW_ATTRIBUTES == 'true') {
                    
    $attribrecs $db->Execute("SELECT cba.products_id,
                                                                                         po.products_options_name poname,
                                                                                         pov.products_options_values_name povname
                                                                            FROM " 
    TABLE_CUSTOMERS_BASKET_ATTRIBUTES " cba,
                                                                                     " 
    TABLE_PRODUCTS_OPTIONS " po,
                                                                                     " 
    TABLE_PRODUCTS_OPTIONS_VALUES " pov,
                                                                                     " 
    TABLE_LANGUAGES " l
                                                                            WHERE cba.products_id ='" 
    . (int)$basket->fields['products_id'] . "'
                                                                                AND cba.customers_id = " 
    $curcus "
                                                                                AND po.products_options_id = cba.products_options_id
                                                                                AND pov.products_options_values_id = cba.products_options_value_id
                                                                                AND po.language_id =" 
    . (int)$_SESSION['languages_id'] . "
                                                                                AND pov.language_id =" 
    . (int)$_SESSION['languages_id']);
                    
    $hasAttributes false;
                    if (
    $attribrecs->RecordCount() > 0){
                        
    $hasAttributes true;
                        
    $prodAttribs '<br />';
                        while (!
    $attribrecs->EOF){
                            
    $prodAttribs .= '<small><i> - ' $attribrecs->fields['poname'] . ' ' $attribrecs->fields['povname'] . '</i></small><br />';
                            
    $attribrecs->MoveNext();
                        }
                    }
                }
                
    // END OF ATTRIBUTE DB CODE 
    If I was any good with PHP I'm sure I'd see how to turn it off, but I amn't and I can't :)

  2. #502
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Recover Cart

    See what happens if you change the references on $cline and $mline for:
    $basket->fields['products_id']

    to be:
    (int)$basket->fields['products_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: v1.5.5]
    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!

  3. #503
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Recover Cart

    Well, I wasn't 100% sure what you meant about the $cline and $sline so I just replaced all eleven instances with the new (int)$basket->fields['products_id'] and it seems to have done the trick.... Thank you Ajeh, your genious is inspiring!

  4. #504
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Recover Cart

    You really do not want to do that ...

    Looking further at this file, I would first try a ...

    Search of the file:
    /your_secret_admin/recover_cart_sales.php

    and search for:
    $mline

    and only on references to this $mline make the change ...

    I am pretty sure if you do make this change in other places that you may actually break things on this program ...
    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: v1.5.5]
    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!

  5. #505
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Recover Cart

    Hi Ajeh,

    I've taken your advice, gone back to the original file and replaced only the two instances with the $mline. It was only this line then:

    PHP Code:
                $mline .= $basket->fields['customers_basket_quantity'] . ' x ' $products->fields['name'] . "\n";
                
    $mline .= '   <blockquote><a href="' zen_catalog_href_link(FILENAME_PRODUCT_INFO'products_id='. (int)$basket->fields['products_id'] ) . '">' zen_catalog_href_link(FILENAME_PRODUCT_INFO'products_id='. (int)$basket->fields['products_id'] ) . "</a></blockquote>\n\n";
                
    $basket->MoveNext(); 
    Just need to run some tests and make sure it's still picking up on bailed carts.

  6. #506
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Recover Cart

    OK, a quick test and it is no longer collecting data on bailed carts. So, changing that line breaks the mod.

  7. #507
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Recover Cart

    well that is poopie ...

    So you are saying the only change you made is on line 236:
    Code:
                $mline .= '   <blockquote><a href="' . zen_catalog_href_link(FILENAME_PRODUCT_INFO, 'products_id='. $basket->fields['products_id']) . '">' . zen_catalog_href_link(FILENAME_PRODUCT_INFO, 'products_id='. (int)$basket->fields['products_id']) . "</a></blockquote>\n\n";
    and this broke it?
    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: v1.5.5]
    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!

  8. #508
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Recover Cart

    Quote Originally Posted by Ajeh View Post
    well that is poopie ...

    So you are saying the only change you made is on line 236:
    Code:
                $mline .= '   <blockquote><a href="' . zen_catalog_href_link(FILENAME_PRODUCT_INFO, 'products_id='. $basket->fields['products_id']) . '">' . zen_catalog_href_link(FILENAME_PRODUCT_INFO, 'products_id='. (int)$basket->fields['products_id']) . "</a></blockquote>\n\n";
    and this broke it?
    Not quite. There are two instances of $basket->fields['products_id'] on line 236. I'd changed both of them.... I'm going to re-try with just one of them changed to (int)$basket->fields['products_id']

  9. #509
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: Recover Cart

    OK, re-tested with this (just one single change):

    PHP Code:
    $mline .= '   <blockquote><a href="' zen_catalog_href_link(FILENAME_PRODUCT_INFO'products_id='$basket->fields['products_id']) . '">' zen_catalog_href_link(FILENAME_PRODUCT_INFO'products_id='. (int)$basket->fields['products_id']) . "</a></blockquote>\n\n"
    It definitely breaks the mod. What it does is stop it from actually collecting balied cart data.

  10. #510
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Recover Cart

    Weird ... I may have to break down and install this to see how it is really working ...
    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: v1.5.5]
    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!

 

 
Page 51 of 67 FirstFirst ... 41495051525361 ... LastLast

Similar Threads

  1. Shipping Rates in Cart [support thread]
    By Steven300 in forum Addon Shipping Modules
    Replies: 95
    Last Post: 12 May 2023, 02:39 AM
  2. Shopping Cart Steps Images [Support Thread]
    By Trinity14 in forum Addon Templates
    Replies: 21
    Last Post: 11 Apr 2021, 05:35 AM
  3. v151 AJAX Add to Cart [Support Thread]
    By balihr in forum All Other Contributions/Addons
    Replies: 133
    Last Post: 20 Oct 2020, 02:16 AM
  4. Empty Cart Manager [support thread]
    By Steven300 in forum All Other Contributions/Addons
    Replies: 49
    Last Post: 26 May 2010, 10:26 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR