Page 145 of 356 FirstFirst ... 4595135143144145146147155195245 ... LastLast
Results 1,441 to 1,450 of 3554
  1. #1441
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

    Quote Originally Posted by spbw View Post
    Hi,

    I hate to jump in here with a post, as I notice a lot of anger within the thread - which I can really understand.
    Don't assign any emotions to me.. I sure as heck NEVER SAID I was angry..

    Quote Originally Posted by coopco View Post
    Hey spbw, I sense no anger, just a lively discussion.
    EXACTLY!!!

    Quote Originally Posted by coopco View Post
    People who develop free add ons must do so in their free time because they have to make a living. While it would be nice to have all add ons ready to go when a new version of zen cart is rolled out, it will never happen.
    Nods in agreement
    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.

  2. #1442
    Join Date
    Sep 2008
    Location
    North Highlands, California 95660
    Posts
    286
    Plugin Contributions
    1

    Default Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

    Hey everyone. Sorry I bailed on this mod. During the time I was reading it and fixing it. I got fired from the job I was working. I am now doing websites for some new clients and use a different shopping cart that has this featured and more I needed built in. So I stop furthering this mod.

    Now one of my old client re-hired me to do work on their existing website which used Zen-Cart. I just upgrade it to 1.5.0. I will be readoing this mod to.work with 1.5.0. I don't promise anything new. Just getting my last version to work with the update. Stay tuned...

    P.S.
    Go Patriots!!! LOL
    http://www.sidewalkstyles.com Comfort Footwear, Accessories and More.
    creinold SBA with Dynamic Drop Downs latest Alpha release: http://www.sidewalkstyles.com/creino...art_V1.5.0.zip

  3. #1443
    Join Date
    Sep 2008
    Location
    North Highlands, California 95660
    Posts
    286
    Plugin Contributions
    1

    Default Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

    Quote Originally Posted by creinold View Post
    I was reading it and fixing it.
    Was suppose to say, " I was redoing it and fixing it." Dang Android cell phone typing.
    http://www.sidewalkstyles.com Comfort Footwear, Accessories and More.
    creinold SBA with Dynamic Drop Downs latest Alpha release: http://www.sidewalkstyles.com/creino...art_V1.5.0.zip

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

    Default Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

    Quote Originally Posted by creinold View Post
    Was suppose to say, " I was redoing it and fixing it." Dang Android cell phone typing.
    I know what you mean!!!

    Question for you.. Perhaps you saw my rant on the last pages.. Will YOU be making strides towards creating a UNIFIED SBA for Zen v1.5??

    The code fragmentation and the fact that the readme files are updated to CLEARLY indicate what changes have been made in each submitted version are problematic.. It would be nice to see a fully unified version of SBA for the first time since v4.7 by Kuroi.. Your version had always seemed to be the most promising of the many variants as (if I recall correctly) you seemed to be leaning towards incorporating the half working Dynamic dropdowns mod..
    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.

  5. #1445
    Join Date
    Sep 2008
    Location
    North Highlands, California 95660
    Posts
    286
    Plugin Contributions
    1

    Default Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

    I am about half way upgrading my version to work with 1.5.0. Hopefully have it out by the end of the week for beta testing. Spent about 5 hours just to get the admin settings to show up in the 1.5.0 Menu. LOL *sigh* For now I am not adding any new features it does have the dynamic drop down add on included in my version. I may remove all the radio buttons stuff that don't work and just have the dropdown options. I am just getting this mod to work with my one client I have left on zen-cart. If I had to do any more work on it... I'll just switch them over to the other cart system I am using instead.
    http://www.sidewalkstyles.com Comfort Footwear, Accessories and More.
    creinold SBA with Dynamic Drop Downs latest Alpha release: http://www.sidewalkstyles.com/creino...art_V1.5.0.zip

  6. #1446
    Join Date
    Feb 2006
    Location
    NM
    Posts
    750
    Plugin Contributions
    1

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

    In post #1293 I shared the following fix for zencart version 1.3.9h using the SBA version .13 - it is a no fuss no muss solution to get your store up and running. I have not worked with .14 but if you go back to 1.3.9 I highly recommend this fix. It has solved the problem for many here:

    Quote Originally Posted by athena View Post

    Here is the fix for Stock By Attributes 1.4.13 - replace includes/modules/pages/shopping_cart/header_php.php with the one below from an earlier version of stock by attributes, namely stock_by_attributes_4-7MULTIADD. :

    Code:
    <?php
    /**
     * shopping_cart header_php.php
     *
     * @package page
     * @copyright Copyright 2003-2007 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: header_php.php 0000 2007-12-02 00:00:00Z kuroi $
     */
    
    // This should be first line of the script:
    $zco_notifier->notify('NOTIFY_HEADER_START_SHOPPING_CART');
    
    require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
    $breadcrumb->add(NAVBAR_TITLE);
    
    // Validate Cart for checkout
    $_SESSION['valid_to_checkout'] = true;
    $_SESSION['cart_errors'] = '';
    $_SESSION['cart']->get_products(true);
    
    if (!$_SESSION['valid_to_checkout']) {
      $messageStack->add('shopping_cart', ERROR_CART_UPDATE . $_SESSION['cart_errors'] , 'caution');
    }
    
    // build shipping with Tare included
    $shipping_weight = $_SESSION['cart']->show_weight();
    /*
      $shipping_weight = 0;
      require(DIR_WS_CLASSES . 'order.php');
      $order = new order;
      require_once('includes/classes/http_client.php'); // shipping in basket
      $total_weight = $_SESSION['cart']->show_weight();
      $total_count = $_SESSION['cart']->count_contents();
      require(DIR_WS_CLASSES . 'shipping.php');
      $shipping_modules = new shipping;
      $quotes = $shipping_modules->quote();
    */
    $totalsDisplay = '';
    switch (true) {
      case (SHOW_TOTALS_IN_CART == '1'):
      $totalsDisplay = TEXT_TOTAL_ITEMS . $_SESSION['cart']->count_contents() . TEXT_TOTAL_WEIGHT . $shipping_weight . TEXT_PRODUCT_WEIGHT_UNIT . TEXT_TOTAL_AMOUNT . $currencies->format($_SESSION['cart']->show_total());
      break;
      case (SHOW_TOTALS_IN_CART == '2'):
      $totalsDisplay = TEXT_TOTAL_ITEMS . $_SESSION['cart']->count_contents() . ($shipping_weight > 0 ? TEXT_TOTAL_WEIGHT . $shipping_weight . TEXT_PRODUCT_WEIGHT_UNIT : '') . TEXT_TOTAL_AMOUNT . $currencies->format($_SESSION['cart']->show_total());
      break;
      case (SHOW_TOTALS_IN_CART == '3'):
      $totalsDisplay = TEXT_TOTAL_ITEMS . $_SESSION['cart']->count_contents() . TEXT_TOTAL_AMOUNT . $currencies->format($_SESSION['cart']->show_total());
      break;
    }
    
    // testing/debugging
    //  require(DIR_WS_MODULES . 'debug_blocks/shopping_cart_contents.php');
    
    $flagHasCartContents = ($_SESSION['cart']->count_contents() > 0);
    $cartShowTotal = $currencies->format($_SESSION['cart']->show_total());
    
    $flagAnyOutOfStock = false;
    $products = $_SESSION['cart']->get_products();
    for ($i=0, $n=sizeof($products); $i<$n; $i++) {
      if (($i/2) == floor($i/2)) {
        $rowClass="rowEven";
      } else {
        $rowClass="rowOdd";
      }
      switch (true) {
        case (SHOW_SHOPPING_CART_DELETE == 1):
        $buttonDelete = true;
        $checkBoxDelete = false;
        break;
        case (SHOW_SHOPPING_CART_DELETE == 2):
        $buttonDelete = false;
        $checkBoxDelete = true;
        break;
        default:
        $buttonDelete = true;
        $checkBoxDelete = true;
        break;
        $cur_row++;
      } // end switch
      $attributeHiddenField = "";
      $attrArray = false;
      $productsName = $products[$i]['name'];
    
      if (STOCK_CHECK == 'true') {
        $flagStockCheck = zen_check_stock($products[$i]['id'], $products[$i]['quantity']);
        if ($flagStockCheck == true) {
          $flagAnyOutOfStock = true;
        }
    	  $stockAvailable = zen_get_products_stock($products[$i]['id']);
      }
    
      // Push all attributes information in an array
      if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) {
        if (PRODUCTS_OPTIONS_SORT_ORDER=='0') {
          $options_order_by= ' ORDER BY LPAD(popt.products_options_sort_order,11,"0")';
        } else {
          $options_order_by= ' ORDER BY popt.products_options_name';
        }
        foreach ($products[$i]['attributes'] as $option => $value) {
          $attributes = "SELECT popt.products_options_name, poval.products_options_values_name, pa.options_values_price, pa.price_prefix
                         FROM " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_OPTIONS_VALUES . " poval, " . TABLE_PRODUCTS_ATTRIBUTES . " pa
                         WHERE pa.products_id = :productsID
                         AND pa.options_id = :optionsID
                         AND pa.options_id = popt.products_options_id
                         AND pa.options_values_id = :optionsValuesID
                         AND pa.options_values_id = poval.products_options_values_id
                         AND popt.language_id = :languageID
                         AND poval.language_id = :languageID " . $options_order_by;
    
          $attributes = $db->bindVars($attributes, ':productsID', $products[$i]['id'], 'integer');
          $attributes = $db->bindVars($attributes, ':optionsID', $option, 'integer');
          $attributes = $db->bindVars($attributes, ':optionsValuesID', $value, 'integer');
          $attributes = $db->bindVars($attributes, ':languageID', $_SESSION['languages_id'], 'integer');
          $attributes_values = $db->Execute($attributes);
          //clr 030714 determine if attribute is a text attribute and assign to $attr_value temporarily
          if ($value == PRODUCTS_OPTIONS_VALUES_TEXT_ID) {
            $attributeHiddenField .= zen_draw_hidden_field('id[' . $products[$i]['id'] . '][' . TEXT_PREFIX . $option . ']',  $products[$i]['attributes_values'][$option]);
            $attr_value = $products[$i]['attributes_values'][$option];
          } else {
            $attributeHiddenField .= zen_draw_hidden_field('id[' . $products[$i]['id'] . '][' . $option . ']', $value);
            $attr_value = $attributes_values->fields['products_options_values_name'];
          }
    
          $attrArray[$option]['products_options_name'] = $attributes_values->fields['products_options_name'];
          $attrArray[$option]['options_values_id'] = $value;
          $attrArray[$option]['products_options_values_name'] = zen_output_string_protected($attr_value) ;
          $attrArray[$option]['options_values_price'] = $attributes_values->fields['options_values_price'];
          $attrArray[$option]['price_prefix'] = $attributes_values->fields['price_prefix'];
        }
    
    		if ( STOCK_CHECK == 'true' ) {
    
    			// Added to allow individual stock of different attributes
    			unset($attributes);
    			if(is_array($products[$i]['attributes'])){
    				$attributes = $products[$i]['attributes'];
    			} else {
    				$attributes = '';
    			}
    
    			// End change
    
    			$stock_check = zen_check_stock($products[$i]['id'], $products[$i]['quantity'],$attributes);
    	
    			if (zen_not_null($stock_check))
    			{
    				$flagAnyOutOfStock = true;
    				$flagStockCheck = $stock_check;
    			  $stockAvailable = zen_get_products_stock($products[$i]['id'], $attributes);		
    			}
    		}
      } //end foreach [attributes]
      $linkProductsImage = zen_href_link(zen_get_info_page($products[$i]['id']), 'products_id=' . $products[$i]['id']);
      $linkProductsName = zen_href_link(zen_get_info_page($products[$i]['id']), 'products_id=' . $products[$i]['id']);
      $productsImage = (IMAGE_SHOPPING_CART_STATUS == 1 ? zen_image(DIR_WS_IMAGES . $products[$i]['image'], $products[$i]['name'], IMAGE_SHOPPING_CART_WIDTH, IMAGE_SHOPPING_CART_HEIGHT) : '');
      $show_products_quantity_max = zen_get_products_quantity_order_max($products[$i]['id']);
      $showFixedQuantity = (($show_products_quantity_max == 1 or zen_get_products_qty_box_status($products[$i]['id']) == 0) ? true : false);
    //  $showFixedQuantityAmount = $products[$i]['quantity'] . zen_draw_hidden_field('products_id[]', $products[$i]['id']) . zen_draw_hidden_field('cart_quantity[]', 1);
    //  $showFixedQuantityAmount = $products[$i]['quantity'] . zen_draw_hidden_field('cart_quantity[]', 1);
      $showFixedQuantityAmount = $products[$i]['quantity'] . zen_draw_hidden_field('cart_quantity[]', $products[$i]['quantity']);
      $showMinUnits = zen_get_products_quantity_min_units_display($products[$i]['id']);
      $quantityField = zen_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="4"');
      $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']);
      $productsPrice = $currencies->display_price($products[$i]['final_price'], zen_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . ($products[$i]['onetime_charges'] != 0 ? '<br />' . $currencies->display_price($products[$i]['onetime_charges'], zen_get_tax_rate($products[$i]['tax_class_id']), 1) : '');
      $productsPriceEach = $currencies->display_price($products[$i]['final_price'], zen_get_tax_rate($products[$i]['tax_class_id']), 1) . ($products[$i]['onetime_charges'] != 0 ? '<br />' . $currencies->display_price($products[$i]['onetime_charges'], zen_get_tax_rate($products[$i]['tax_class_id']), 1) : '');
      $productArray[$i] = array('attributeHiddenField'=>$attributeHiddenField,
                                'flagStockCheck'=>$flagStockCheck,
                                'flagShowFixedQuantity'=>$showFixedQuantity,
                                'linkProductsImage'=>$linkProductsImage,
                                'linkProductsName'=>$linkProductsName,
                                'stockAvailable'=>$stockAvailable,
                                'productsImage'=>$productsImage,
                                'productsName'=>$productsName,
                                'showFixedQuantity'=>$showFixedQuantity,
                                'showFixedQuantityAmount'=>$showFixedQuantityAmount,
                                'showMinUnits'=>$showMinUnits,
                                'quantityField'=>$quantityField,
                                'buttonUpdate'=>$buttonUpdate,
                                'productsPrice'=>$productsPrice,
                                'productsPriceEach'=>$productsPriceEach,
                                'rowClass'=>$rowClass,
                                'buttonDelete'=>$buttonDelete,
                                'checkBoxDelete'=>$checkBoxDelete,
                                'id'=>$products[$i]['id'],
                                'attributes'=>$attrArray);
    } // end FOR loop
    
    
    // This should be last line of the script:
    $zco_notifier->notify('NOTIFY_HEADER_END_SHOPPING_CART');
    ?>

  7. #1447
    Join Date
    Sep 2006
    Location
    North Devon, England, UK
    Posts
    289
    Plugin Contributions
    0

    Default Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

    RE: no stock alert message on shopping cart page for non attribute orders

    I have stock_by_attributes_1.4.13 installed and zen cart v1.3.9h - if i add an attribute of a product to cart, which uses stock by attributes for stock, and i order more than stock available for that attribute, an alert message is displayed on the shopping cart page. this is great.

    However, if i add a product to cart that is not an attribute (doesn't use stock by attributes, default stock system only) and order more than available stock, although i am stopped from continuing to checkout, there is no alert message as per above.

    I think it is due to code changes in modules/pages/shopping_cart/custom_template/header_php.php.

    I have tested on a different site with no stock by attributes installed and stock alert message is displayed if I try and order more than stock available.

    If anyone can advise how i fix the code, or why this is happening that would be great.

  8. #1448
    Join Date
    Nov 2010
    Posts
    21
    Plugin Contributions
    0

    Default Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

    I am still looking for the answer on how to paginate the stock by attribute page. I have been looking for a way to implement some code for this but have not had any luck. I did find some code that I think will work but just am not sure where to add it in. The code I would like to use is:

    PHP Code:
    <?php
    //connecting to the database$error = "Could not connect to the database";mysql_connect('localhost','root','') or die($error);mysql_select_db('pagination') or die($error);
    //max displayed per page$per_page = 36;
    //get start variable$start = $_GET['start'];
    //count records$record_count = mysql_num_rows(mysql_query("SELECT * FROM data"));
    //count max pages$max_pages = $record_count / $per_page; //may come out as decimal
    if (!$start)
       
    $start 0;
       
    //display data$get = mysql_query("SELECT * FROM data LIMIT $start, $per_page");
    while ($row mysql_fetch_assoc($get))
    {
     
    // get data
     
    $name $row['name'];
     
    $age $row['age'];
     
     echo 
    $name." (".$age.")<br />";

    }
    //setup prev and next variables$prev = $start - $per_page;$next = $start + $per_page;
    //show prev buttonif (!($start<=0))
           
    echo "<a href='index.php?start=$prev'>Prev</a> ";
    //show page numbers

    //set variable for first page$i=1;

    for ($x=0;$x<$record_count;$x=$x+$per_page)
    {
     if (
    $start!=$x)
        echo 
    " <a href='index.php?start=$x'>$i</a> ";
     else
        echo 
    " <a href='index.php?start=$x'><b>$i</b></a> ";
     
    $i++;
    }
    //show next buttonif (!($start>=$record_count-$per_page))
           
    echo " <a href='index.php?start=$next'>Next</a>";
    ?>
    Can anyone give me some advice on how to modify the above code to work with this module?

    Thanks in advance

  9. #1449
    Join Date
    Dec 2010
    Posts
    21
    Plugin Contributions
    0

    Default Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

    Hi all,

    I am having a hell of a time getting this to work. Im on 1.3.9h. Ive tried all of the stock by attributes add ones with no dice.

    The one im trying to install is THIS one.

    This is the procedure ive followed:
    1. install sql patch.
    2. Rename includes/templates/YOUR_TEMPLATE to my template name.
    NOTE: the instructions say to rename includes/modules/YOUR_TEMPLATE yet there is no /YOUR_TEMPLATE folder in /modules
    3. Use fillzilla to move the files to my online directory.
    The instructions say click on Catalog->Products with Attributes Stock to modify inventory levels but i have no such option.

    Any help working this out would be appreciated.

    Brent

  10. #1450
    Join Date
    Sep 2006
    Location
    North Devon, England, UK
    Posts
    289
    Plugin Contributions
    0

    Default Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9

    mentose457 - i'm not sure if there is a dedicated thread for 'Stock by Attributes 4.7 Multiadd WITH TABLE FILTER 1.6', but, if there is, prob worth posting there.

    I haven't used 'Stock by Attributes 4.7Multiadd WITH TABLE FILTER 1.6', only 'stock by attributes'.

    but, referring to:

    NOTE: the instructions say to rename includes/modules/YOUR_TEMPLATE yet there is no /YOUR_TEMPLATE folder in /modules
    yes, you need to create a folder in includes/modules/ with the name of your template folder, the same name as YOUR_TEMPLATE in includes/templates/YOUR_TEMPLATE. Although you dont have to do this, you could and it would work, it is better to add customised files to a template folder to override the original (but not overwrite the original), it looks like if you didn't create a template folder here and put the files in there you would be overwriting core files (avoid as much as poss).

    always, always make sure all files are uploaded, sometimes the best way to do this is NOT upload files one at a time, in this case add the /admin/ and /includes/ folder... however, before you do this, rename the admin folder to the name of your admin folder, and, also create the /YOUR_TEMPLATE/ folders with the correct template name as per above, including in the /includes/modules/ folder

 

 

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