Results 1 to 10 of 42

Hybrid View

  1. #1
    Join Date
    May 2007
    Posts
    61
    Plugin Contributions
    0

    Default Re: A few problems with this module, Please Help

    Quote Originally Posted by kuroi View Post
    It's not clear whether the update to which you refer is a mod that you have added or a bit of custom code. However, the end result is a version of cross sell that doesn't have the normal classes that tie into the stylesheet for layout, or the embedded HTML that sets the width of cross sell product. The latter is particularly important for allowing the products to line up horizontally.

    Not so weird. In amongst the other changes the closing </form> tag has been lost. for the first add to cart button. As a result the form extends to the end of the second add to cart button which is the first cross sold product. So now every time you click the first button, it's the product for the second that will be added to the cart.
    Thank u kuroy for the quick answer

    For the first answer - the changes I done is from the code paulm gave here at the first page of the code... I guess he changed the layout? I gonna look at those files see if I can see something...

    as for the second answer - is there any way to fix it? can u tell me how or where to look?

    thanks again!

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Cross Sell Module Mods

    Ah. That would be the code that he warns
    will mess up your current cross sell layout
    Yes, I can see elements in your code such as his customer class for the div around the cross sell product data, but you would need to create your own CSS to go with this, both to style the content and to create its structure (since his code ignores the Zen Cart variables created to do this).

    The missing closing form tag is, I now see, not missing. It's in its usual place at the bottom of the product_information panel. However, you can't nest your additional add to cart buttons inside it, as they too are forms. So you need to move them down, or more likely close your original form immediately after the original add to cart button.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    May 2007
    Posts
    61
    Plugin Contributions
    0

    Default Re: Cross Sell Module Mods

    Quote Originally Posted by kuroi View Post
    Ah. That would be the code that he warnsYes, I can see elements in your code such as his customer class for the div around the cross sell product data, but you would need to create your own CSS to go with this, both to style the content and to create its structure (since his code ignores the Zen Cart variables created to do this).

    The missing closing form tag is, I now see, not missing. It's in its usual place at the bottom of the product_information panel. However, you can't nest your additional add to cart buttons inside it, as they too are forms. So you need to move them down, or more likely close your original form immediately after the original add to cart button.

    Thank u very much

    as you said I placed the </form> a little bit upper, right after (and like that:):

    Code:
     
     
    $myBuyNow = '';
    $myBuyNow .= '</form>';
    and it fixed the add to cart problem thanks!

    as for the layout... would I need to change the code again? or just write the css file? and do I need to tell zencart to use this css file? or I just put it the css directory of my template?

    thank u very much for helping me!

  4. #4
    Join Date
    Nov 2003
    Posts
    1,987
    Plugin Contributions
    15

    Default Re: Cross Sell Module Mods

    Quote Originally Posted by kuroi View Post
    you would need to create your own CSS to go with this, both to style the content and to create its structure (since his code ignores the Zen Cart variables created to do this).
    That's correct. I did not include any styling, but just dropped in some "random" classes. Maybe some default Zen classes would fit nicely?


    And I forgot about the fact that I included the xsell box below the closing form tag, while most will probably include it just above or below also purchased (which is before the form closure).

    I think at first I wanted the form to redirect to the xsell product when a customer would add it to the cart (and achieved that by giving each xsell product it's own form + action). But later I realized that some customers might be distracted to much by this redirect to the xsell product and possibly would never return to the original product to buy it.....
    (of course this behaviour depends on your "Display Cart After Adding Product" setting too)

    Anyway, the way it is setup now it's easy to change the form action as desired.

 

 

Similar Threads

  1. Which one? Multi Cross Sell vs Ultimate Cross Sell?
    By Renz in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 3 Jul 2013, 08:30 AM
  2. Fatal Error After installing Cross Sell - Just Another Cross Sell Mod
    By kconklin in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 9 Jul 2010, 02:38 PM
  3. Cross Sell Module
    By Drunkguy in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 12 Mar 2010, 08:09 AM
  4. Cross Sell and Advanced Cross Sell Modules
    By fairway in forum Addon Templates
    Replies: 4
    Last Post: 8 Dec 2009, 08:44 PM

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