Page 34 of 35 FirstFirst ... 2432333435 LastLast
Results 331 to 340 of 350
  1. #331
    Join Date
    Jul 2005
    Location
    Orlando, Fl
    Posts
    324
    Plugin Contributions
    0

    Default Re: Callbacks doesn't work for me at all!!!!

    Amazon will not pass the attribute names = Amazons Checkout page and in the buyers control panel does not show them
    Thank you for clarifying this.

    Issue #4 - Attribute Names not showing on Amazon Checkout Page

    Issue #5 - Special Characters breaks Order Push

    The following is a workaround for both Issues 4 & 5

    Open file -> checkout_by_amazon/button_generator.php

    Find This:

    PHP Code:
    $xmlBuilder->Element('Description'substr(zen_get_products_description($item[id],1), 0MAX_DESC_LEN)); 
    Replace with this:

    PHP Code:
    $attributes_array $cd->GetItemCustomXml($item);    
                                
                  unset(
    $attributes_result);             
                    
                    foreach(
    $attributes_array as $row)
                      {                                  
                         if (
    $row['attributes']) {
                          
                             foreach(
    $row['attributes'] as $k)
                             {
                                   
    $attributes_result .= $k['options_name'] . ":  ";
                                   
    $attributes_result .= $k['values_name'] . "  --  ";
                             }
                         }
                      } 
                                  
                
    $xmlBuilder->Element('Description'$attributes_result substr(preg_replace('/[^a-zA-Z0-9_ -]/s'''strip_tags(zen_get_products_description($item[id],1))), 0MAX_DESC_LEN)); 
    This workaround simply puts the attribute names before the description at Amazons' Checkout Page when they are present.

    This also strips all the html and special characters from the description when sent to Amazon.

    ~D

  2. #332
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: Callbacks doesn't work for me at all!!!!

    djdave, Nice job attempting to work the issues out.

    Disregard the repetitious know it all naysayers.

  3. #333
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Callbacks doesn't work for me at all!!!!

    Quote Originally Posted by Woodymon View Post
    djdave, Nice job attempting to work the issues out.

    Disregard the repetitious know it all naysayers.
    I just LOVE passive aggressive posts!!!

    "repetitious know it all naysayers" eh?? riiiiight... funny..
    Last edited by DivaVocals; 22 Oct 2013 at 03:02 PM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  4. #334
    Join Date
    Oct 2012
    Posts
    13
    Plugin Contributions
    0

    Default Re: Callbacks doesn't work for me at all!!!!

    Quote Originally Posted by djdavedawson View Post
    Thank you for clarifying this.

    Issue #4 - Attribute Names not showing on Amazon Checkout Page

    Issue #5 - Special Characters breaks Order Push

    The following is a workaround for both Issues 4 & 5

    Open file -> checkout_by_amazon/button_generator.php

    Find This:

    PHP Code:
    $xmlBuilder->Element('Description'substr(zen_get_products_description($item[id],1), 0MAX_DESC_LEN)); 
    Replace with this:

    PHP Code:
    $attributes_array $cd->GetItemCustomXml($item);    
                                
                  unset(
    $attributes_result);             
                    
                    foreach(
    $attributes_array as $row)
                      {                                  
                         if (
    $row['attributes']) {
                          
                             foreach(
    $row['attributes'] as $k)
                             {
                                   
    $attributes_result .= $k['options_name'] . ":  ";
                                   
    $attributes_result .= $k['values_name'] . "  --  ";
                             }
                         }
                      } 
                                  
                
    $xmlBuilder->Element('Description'$attributes_result substr(preg_replace('/[^a-zA-Z0-9_ -]/s'''strip_tags(zen_get_products_description($item[id],1))), 0MAX_DESC_LEN)); 
    This workaround simply puts the attribute names before the description at Amazons' Checkout Page when they are present.

    This also strips all the html and special characters from the description when sent to Amazon.

    ~D
    This is a shock that someone had actually made progress to improve an aspect of this module. Do you know if its possible to include the attributes to show up on the buyer side Amazon seller central order screen? If this can be done, then I know of a few store owners who would make use of this module again as that is the biggest weakness to not use it.

  5. #335
    Join Date
    Jul 2005
    Location
    Orlando, Fl
    Posts
    324
    Plugin Contributions
    0

    Default Re: Callbacks doesn't work for me at all!!!!

    Nice job attempting to work the issues out.
    Thanks Woodymon

  6. #336
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Callbacks doesn't work for me at all!!!!

    Quote Originally Posted by Whot View Post
    This is a shock that someone had actually made progress to improve an aspect of this module. Do you know if its possible to include the attributes to show up on the buyer side Amazon seller central order screen? If this can be done, then I know of a few store owners who would make use of this module again as that is the biggest weakness to not use it.
    While I might be the resident "repetitious know it all naysayer" I do agree with your thoughts.. Yep.. the attributes and the other issues (not to mention the lack of Amazon's support) were among the many reasons my client opted to not implement this payment module for now.. It's nice to see someone make forward progress with it.. Hoping one day that I will be able to fully implement it for my client..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  7. #337
    Join Date
    Sep 2011
    Posts
    21
    Plugin Contributions
    0

    Default Checkout by Amazon Zen Cart Plug-in - Look Ma, No Dupes

    If anyone is interested in Amazon checkout, I actually believe I've figured out the duplicate orders issue. The cause, I'm pretty sure, was that Amazon sent two statuses at one time - PROCESSING and UNSHIPPED - setting up race condition so sometimes orders got duplicated and sometimes they did not in amazonorder.php. What I did was set up semaphore to allow only one process to execute the critical code at a given time.

    This works for us:

    In amazonorder.php, at start of NewIOPNOrders function:

    // *********** locking
    // Get the lock
    $lockfile = 'cache/amazon_order.lock';
    $lock = fopen($lockfile, 'a');
    $ret = flock($lock, LOCK_EX);
    // *********** locking

    Then at end of NewIOPNOrders:

    // *********** locking
    // Release the lock
    $ret = flock($lock, LOCK_UN);
    fclose($lock);
    // *********** locking

    One thing I would like to see fixed is for shipping option to be presented on Amazon with lowest cost choice. I haven't been able to figure that out, as Amazon seems to randomly pick default even if I sent them in order.

  8. #338
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,296
    Plugin Contributions
    22

    Default Re: Checkout by Amazon Zen Cart Plug-in - Look Ma, No Dupes

    Just announced - a new Pay by Amazon developed by a UK firm and announced by amazon - I don't know anything more about it but at least it should work. http://go.amazonservices.com/UKCBASPZencart.html
    The full-time Zen Cart Guru. WizTech4ZC.com

  9. #339
    Join Date
    Dec 2005
    Location
    Box Elder, SD
    Posts
    373
    Plugin Contributions
    0

    Default Re: Checkout by Amazon Zen Cart Plug-in - Look Ma, No Dupes

    Quote Originally Posted by delia View Post
    Just announced - a new Pay by Amazon developed by a UK firm and announced by amazon - I don't know anything more about it but at least it should work. http://go.amazonservices.com/UKCBASPZencart.html
    The installation guide says the business address must be in UK, Germany or Luxemburg.

  10. #340
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,296
    Plugin Contributions
    22

    Default Re: Checkout by Amazon Zen Cart Plug-in - Look Ma, No Dupes

    Well, that's a real irritation. You are right. I just let them know the rest of the world awaits.
    The full-time Zen Cart Guru. WizTech4ZC.com

 

 
Page 34 of 35 FirstFirst ... 2432333435 LastLast

Similar Threads

  1. Checkout by Amazon shopping cart bug?
    By fatiga in forum Addon Payment Modules
    Replies: 0
    Last Post: 9 Aug 2011, 06:38 PM
  2. Zen Cart - Amazon.com Model
    By Cylants in forum General Questions
    Replies: 2
    Last Post: 27 May 2008, 04:05 AM
  3. Amazon Payments for Zen-Cart?
    By fruitjars in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 15 Feb 2008, 04:15 PM

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