Page 25 of 360 FirstFirst ... 1523242526273575125 ... LastLast
Results 241 to 250 of 3592
  1. #241
    Join Date
    May 2007
    Location
    Leicester, England
    Posts
    165
    Plugin Contributions
    1

    Have a Drink Re: Stock by Attribute v4.0 for Zen Cart 1.3.5

    I have a problem with my store.

    I can add a product to the shopping cart when the product has no attributes, but if the product has attributes, it is not possible to click on the 'add to cart' button. (I have sba v4.4 installed using Zen Cart 1.3.7.1, and, as far as I can tell, all the relevant files for the mod are in the correct places)

    The button appears to be disabled when the customer wishes to add a product to the cart, and since this seems to be the case only for products with attributes, I am assuming that the problem is related to sba.

    I have double-checked everything, as far as I can, but I don't seem to be able to fix the problem - can anyone shed some light on what might be causing this critical phenomenon, PLEASE?

  2. #242
    Join Date
    Jan 2007
    Posts
    226
    Plugin Contributions
    0

    Default Re: Stock by Attribute v4.0 for Zen Cart 1.3.5

    Hello,

    I installed the "Stock by Attributes" mod, and everything seemed to work fine until I made a purchase in my cart using one of the modded products.

    When I arrived in my cart at the "main_page=checkout" page, it came up with the following error:

    "Fatal error: Call to undefined function: zen_get_advertizer_list() in /home/xmanhos/public_html/shop/includes/templates/xman/templates/tpl_checkout_default.php on line 215"

    Has anyone had experience with this error before ?

    Kind regards,
    Anthony

  3. #243
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: Stock by Attribute v4.0 for Zen Cart 1.3.5

    Does any one know if you can assign different codes to your attributes with this contribution?

    For example...

    Main product (code 1234)
    - size small (code 1234s)
    - size medium (code 1234m)
    - size large (code 1234l)

    Thanks in advance! :)

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

    Default Re: Stock by Attribute v4.0 for Zen Cart 1.3.5

    Quote Originally Posted by Alex Clarke View Post
    Does any one know if you can assign different codes to your attributes with this contribution?
    Alas not. Attribute level SKUs are scheduled for inclusion in Zen Cart 1.4.
    Kuroi Web Design and Development | Twitter

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

  5. #245
    Join Date
    Mar 2006
    Posts
    919
    Plugin Contributions
    2

    Default Re: Stock by Attribute v4.0 for Zen Cart 1.3.5

    Quote Originally Posted by kuroi View Post
    Alas not. Attribute level SKUs are scheduled for inclusion in Zen Cart 1.4.
    That was going to be my next question!! Thanks for the quick reply. :)

  6. #246
    Join Date
    May 2007
    Location
    Leicester, England
    Posts
    165
    Plugin Contributions
    1

    Have a Drink Re: Stock by Attribute v4.0 for Zen Cart 1.3.5

    BUMP! (only because I didn't receive a reply to the earlier thread in this post, and have been unable to resolve this problem- at present it's crippling my progress in making the store go live)

    I have a problem with my store.

    I can add a product to the shopping cart when the product has no attributes, but if the product has attributes, it is not possible to click on the 'add to cart' button. (I have sba v4.4 installed using Zen Cart 1.3.7.1, and, as far as I can tell, all the relevant files for the mod are in the correct places)

    The button appears to be disabled when the customer wishes to add a product to the cart, and since this seems to be the case only for products with attributes, I am assuming that the problem is related to sba.

    I have double-checked everything, as far as I can, but I don't seem to be able to fix the problem - can anyone shed some light on what might be causing this critical phenomenon, PLEASE?

    Here's the generated html code for the 'dead' button, but as far as I can tell, it appears to be an active 'input' item which actually identifies the products ID:
    HTML Code:
    <!--bof Add to Cart Box -->
         <div id="cartAdd">
        Add to Cart: 
    <input name="cart_quantity" value="1" maxlength="6" size="4" type="text">
    <br><br><input name="products_id" value="330" type="hidden">
    <input src="includes/templates/template_default/buttons/english/button_in_cart.gif" alt="Add to Cart" title=" Add to Cart " type="image">
    </div>
      <!--eof Add to Cart Box-->
    The products ID value is correct, but there doesn't seem to be any value for the Stock ID created by sba.

    Now here's the code for an add to cart button for an item that doesn't have any attribute 'variants':
    HTML Code:
    <!--bof Add to Cart Box -->
    <div id="cartAdd">
    Add to Cart:
    <input name="cart_quantity" value="1" maxlength="6" size="4" type="text">
    <br><br><input name="products_id" value="276" type="hidden">
    <input src="includes/templates/template_default/buttons/english/button_in_cart.gif" alt="Add to Cart" title=" Add to Cart " type="image">
    </div>
    <!--eof Add to Cart Box-->
    Now, since the code for these buttons appears to be identical, withe exception of the products ID, can anyone cast any light as to why one working and the other NOT?

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

    Default Re: Stock by Attribute v4.0 for Zen Cart 1.3.5

    Quote Originally Posted by xman888 View Post
    Hello,

    I installed the "Stock by Attributes" mod, and everything seemed to work fine until I made a purchase in my cart using one of the modded products.

    When I arrived in my cart at the "main_page=checkout" page, it came up with the following error:

    "Fatal error: Call to undefined function: zen_get_advertizer_list() in /home/xmanhos/public_html/shop/includes/templates/xman/templates/tpl_checkout_default.php on line 215"

    Has anyone had experience with this error before ?

    Kind regards,
    Anthony
    Anthony, you didn't just install Stock by Attributes, did you? You also installed One Step Checkout.

    The error that you are getting refers to a non-existent function, zen_get_advertizer_list(). Not just one that it can't find, but one that is not even part of Zen Cart, or Stock by Attributes.

    Moreover, the file that is calling it, tpl_checkout_default.php, doesn't exist in Zen Cart or Stock by Attributes either.

    The latter does exist in the One Page Checkout mod which until today I had not looked at. Having now reviewed, I strongly recommend that you delete it and run. Happily it doesn't overwrite any of your core files, so there's no damage done to your underlying Zen Cart. In addition to missing code such as that which you are tripping over, this mod seems to have references to other undocumented add-ons that were presumably part of his install when he put this mod together (and may be the cause of your problem) as well as hard-coded references to his template.

    The forum moderators have put a warning on this mod. I've never seen them do that before, so I guess that's a strong indication that they agree that it's not up to the usual quality.
    Kuroi Web Design and Development | Twitter

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

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

    Default Re: Stock by Attribute v4.0 for Zen Cart 1.3.5

    @blag

    The code for your add to cart buttons with attribute and without are correctly identical apart from the product id. No stock id is added or needed at that point.

    To jump from noticing that the problem occurs only with products who have attributes to assuming that it must therefore be a problem with stock by attributes is too big a leap. Stock by Attributes is just a small part of the attributes processing and setup and I wouldn't rule out other possibilities based on what you've told us.

    That said Stock by Attributes would be the first place I'd look too. The reason is because there isn't a Stock by Attributes for Zen Cart 1.3.7.1. The last version 4.4 was re-tooled specifically for Zen Cart 1.3.7 and because it affects six core files that tend to change in every release, needs to be re-tooled each tool. Three of those six files changed in between 1.3.7 and 1.3.7.1, so there's a fair chance that's what's causing your problem.

    I haven't reviewed those changes, and you haven't told us specifically what happens when you try to use the button or provided a link, but if I had to guess, I would suggest looking first at the includes/modules/pages/shopping_cart/header_php.php file.
    Kuroi Web Design and Development | Twitter

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

  9. #249
    Join Date
    May 2007
    Location
    Leicester, England
    Posts
    165
    Plugin Contributions
    1

    Default Re: Stock by Attribute v4.0 for Zen Cart 1.3.5

    kuroi

    Thanks for the response. Of course you are right, I may be wrongly assigning the blame to sba, and I had failed to understand that the version was 1.3.7 specific, but is it possible/likely that a file that is NOT included in the sba mod, but which IS included in the 1.3.7.1 update is causing this problem?

    The add-to-cart button for a product with attributes appears to be dead: the cursor does not change to a hand, and the button is not clickable, but the 'quantity' box directly above the add-to-cart button IS editable.

    BTW I have found a significant difference earlier in the html pages' output from my store, which be relevant.

    If I examine the entire source for a page for a product which has no attributes I find this piece of html:
    <!--bof Form start-->
    <form name="cart_quantity" action="http://www.hohose.exphoster.com/store/bbb001-p-242.html?action=add_product" method="post" enctype="multipart/form-data">
    <!--eof Form start-->
    The 'same' snippet of code for a page for a product WITH attributes (but, obviously, for a different product) is:
    <!--bof Form start-->
    <form name="cart_quantity" action="http://www.hohose.exphoster.com/store/babette-micromesh-p-230.html?action=add_product&amp;number_of_uploads=0" method="post" enctype="multipart/form-data">
    <!--eof Form start-->
    I have no downloadable products, and AFAIK I have disallowed uploads/downloads in my admin, but the file with attributes appears to make a reference to uploads, even though, presumably, there shouldn't be any such reference!!

    BTW by asking WinMerge to compare the full files of 1.3.7.1 unmodified, and those contained in the most recent version of sba (in the downloads section of ZC), the following files differ:
    admin/includes/stylesheet.css - the difference is that the sba 'version' makes a call to makes a call to import the stock_attributes.css, otherwise files are identical
    admin/orders.php - the sba version adds two lines of code, otherwise files are identical
    includes/classes/order.php - apart from various lines added by sba, there are four lines which differ; i.e. 912; 915; 918; & 956
    includes/functions/functions_lookups.php all changes are made by sba, otherwise files are identical
    includes/modules/pages/checkout_shipping/header_php.php additional code by sba, otherwise files are identical
    includes/modules/pages/shopping_cart/header_php.php there are five additional lines in the sba file at approx line 71/72, but these same lines are to be found at line 111; line 106 of the 1.3.7.1 differs from line 113 of the sba version; other than that there are additional lines in the sba version.

    By comparing the 1.3.7 and the 1.3.7.1 full filesets, I find the following differences:
    admin/includes/stylesheet.css - - the files are identical
    admin/orders.php - lines 457 and 813 differ.
    includes/classes/order.php - lines 912; 915; 918; & 956 differ.
    includes/functions/functions_lookups.php files are identical
    includes/modules/pages/checkout_shipping/header_php.php files are identical
    includes/modules/pages/shopping_cart/header_php.php line 106 differs

    It seems to me, therefore, if the difference between the two versions is causing the problems, the culprit(s) MAY POSSIBLY lie in the elements defined in red, above. Unfortunatlely that gets me no further forward, because I wouldn't know how to fix these, unless, of course reverting to original 1.3.7 version has no consequences other than fixing my problem!!

    BTW: My store can be found here

    Any ideas, suggestions or help, please??

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

    Default Re: Stock by Attribute v4.0 for Zen Cart 1.3.5

    @blag

    Always useful to give a URl and say which browser you're using. The button works perfectly in IE7. In fact it probably works perfectly in all browsers, except that when there are attributes some dodgy layout comes into play (and although it works in IE, it's actually IE that gets it wrong ).

    Basically you have extended the DIV that contains your product attributes right across the screen and it is sitting on top of your add to cart button. The add to cart button is perfectly coded and working properly, you just can't get to it as it's behind an invisible barrier.

    You need to tweak your stylesheet so that the button is on top, or the errant div does not take up the whole width.

    BTW if you're using Firefox on PC, then you can just sneak a click at the very, very top of the button.
    Kuroi Web Design and Development | Twitter

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

 

 

Similar Threads

  1. Problems with addon: Dynamic Drop Downs for Stock By Attribute
    By Dunk in forum All Other Contributions/Addons
    Replies: 56
    Last Post: 30 Apr 2014, 07:55 PM
  2. MySQL Problem with Product with Attribute Stock addon
    By rtwingfield in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 20 Sep 2011, 03:35 PM
  3. Hide Zero Quantity Attributes with attribute-stock addon
    By leevil123 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 11 Feb 2010, 05:06 PM
  4. Replies: 4
    Last Post: 22 Jan 2010, 10:43 PM
  5. Price Products in the grid by 'Stock by Attribute' addon?
    By Salixia in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 27 Oct 2009, 06:03 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