Jump to content

kaabuks

Members
  • Content count

    10
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    G
  1. kaabuks

    Sitemap SEO

    Hi Jack_mcs, I have one more question. Where can i remove or change links created with Additional link Control in the Box Control? I have created one with the wrong path and now can't remove it. thanks!
  2. Hi I tried to merge files for both contributions and everything seems to work except one bug. When I add aditional images to the product everything is working. But the next time I edit description of that product, all additional images disappear and I have to add them again. Maybe somebody knows where I can look for a problem?
  3. kaabuks

    Sitemap SEO

    Hello, I have a problem with Lithuanian characters ą,č,š... and so on. My sitemap displays û,ø,ð,ë... characters instead of Lithuanian. The problem appears only in sitemap page. Strange thing is that when I open this page in google chrome, everything is ok, but in explorer or firefox something is going wrong. Any suggestions?
  4. Why somebody erases this topic each tme I try t get help? Anyway. My shop has prducts with and without attributes. Contribution Quantity for product attributes are working properly, but the fix (v3) that controls if there is enough quantity for each attribute is not working properly. After installing this fix all products that have attributes appear out of stock when added to the basket. Here is the code for this fix (v3) the previous "Fix a bug:: check stock per product attribute quantity" (v2) doesn't work if you have products with attribute AND products without attribute. use checkout_payment.php and checkout_confirmation.php from the previous fix but for shopping_cart.php and general.php use the code below. for shopping_cart.php : find these lines: if (STOCK_CHECK == 'true') { $stock_check = tep_check_stock($products[$i]['id'], $products[$i]['quantity']); if (tep_not_null($stock_check)) { $any_out_of_stock = 1; $products_name .= $stock_check; } } and replace with: if (STOCK_CHECK == 'true') { if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) { reset($products[$i]['attributes']); while (list($option, $value) = each($products[$i]['attributes'])) { $stock_check = tep_check_stock_attribute($products[$i]['id'], $products[$i][$option]['products_attributes_id'], $products[$i]['quantity']); if (tep_not_null($stock_check)) { $any_out_of_stock = 1; $products_name .= '<br /> ' . $stock_check; } } } else { $stock_check = tep_check_stock($products[$i]['id'], $products[$i]['quantity']); if (tep_not_null($stock_check)) { $any_out_of_stock = 1; $products_name .= '<br /> ' . $stock_check; } } } for general.php: find: //// // Break a word in a string if it is longer than a specified length ($len) and add above: //// // Return a product's stock - ATTRIBUTE // TABLES: products function tep_get_products_stock_attribute($products_id, $products_attributes_id) { $products_id = tep_get_prid($products_id); $stock_query = tep_db_query("select options_quantity from " . TABLE_PRODUCTS ." p,".TABLE_PRODUCTS_ATTRIBUTES. " pa where p.products_id = '" . (int)$products_id . "'"." AND p.products_id=pa.products_id AND pa.products_attributes_id='".(int)$products_attributes_id."'"); $stock_values = tep_db_fetch_array($stock_query); return $stock_values['options_quantity']; } //// // Check if the required stock is available - ATTRIBUTE // If insufficent stock is available return an out of stock message function tep_check_stock_attribute($products_id, $products_attributes_id, $products_quantity) { $stock_left = tep_get_products_stock_attribute($products_id, $products_attributes_id) - $products_quantity; $out_of_stock = ''; if ($stock_left < 0) { $out_of_stock = '<span class="markProductOutOfStock">' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . '</span>'; } return $out_of_stock; } Can anyone suggest me where to look for the problem?
  5. Not all my products have attributes, that is why i tried this fix from the contribution: the previous "Fix a bug:: check stock per product attribute quantity" (v2) doesn't work if you have products with attribute AND products without attribute. use checkout_payment.php and checkout_confirmation.php from the previous fix but for shopping_cart.php and general.php use the code below. for shopping_cart.php : find these lines: if (STOCK_CHECK == 'true') { $stock_check = tep_check_stock($products[$i]['id'], $products[$i]['quantity']); if (tep_not_null($stock_check)) { $any_out_of_stock = 1; $products_name .= $stock_check; } } and replace with: if (STOCK_CHECK == 'true') { if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) { reset($products[$i]['attributes']); while (list($option, $value) = each($products[$i]['attributes'])) { $stock_check = tep_check_stock_attribute($products[$i]['id'], $products[$i][$option]['products_attributes_id'], $products[$i]['quantity']); if (tep_not_null($stock_check)) { $any_out_of_stock = 1; $products_name .= '<br /> ' . $stock_check; } } } else { $stock_check = tep_check_stock($products[$i]['id'], $products[$i]['quantity']); if (tep_not_null($stock_check)) { $any_out_of_stock = 1; $products_name .= '<br /> ' . $stock_check; } } } for general.php: find: //// // Break a word in a string if it is longer than a specified length ($len) and add above: //// // Return a product's stock - ATTRIBUTE // TABLES: products function tep_get_products_stock_attribute($products_id, $products_attributes_id) { $products_id = tep_get_prid($products_id); $stock_query = tep_db_query("select options_quantity from " . TABLE_PRODUCTS ." p,".TABLE_PRODUCTS_ATTRIBUTES. " pa where p.products_id = '" . (int)$products_id . "'"." AND p.products_id=pa.products_id AND pa.products_attributes_id='".(int)$products_attributes_id."'"); $stock_values = tep_db_fetch_array($stock_query); return $stock_values['options_quantity']; } //// // Check if the required stock is available - ATTRIBUTE // If insufficent stock is available return an out of stock message function tep_check_stock_attribute($products_id, $products_attributes_id, $products_quantity) { $stock_left = tep_get_products_stock_attribute($products_id, $products_attributes_id) - $products_quantity; $out_of_stock = ''; if ($stock_left < 0) { $out_of_stock = '<span class="markProductOutOfStock">' . STOCK_MARK_PRODUCT_OUT_OF_STOCK . '</span>'; } return $out_of_stock; } When I add a product with an attribute to the cart, it shows that this product is out of stock. All products that have attributes appear to have not enough quantity in stock. Is this fix correct? Can anyone suggest me where to look for the problem?
  6. I have succesfully installed this contribution and applied all necessary bug fixes (get no errors after that). Contribution link The problem is that not all of my products have attributes. There is a fix for such case in the contribution, but it doesn't help. When I add a product with an attribute to the cart, it shows that there is not enough quantity (even if it is just 1). All products that have attributes appear to have not enough quantity in stock. Can anyone suggest me where to look for the problem?
  7. kaabuks

    FCK WYSIWYG HTML editor

    I have installed latest FCK editor and everything worked fine. Then I changed the name of admin file and added security to the .htaccess file. Now I find this error even after changing admin file name to original: Fatal error: Class 'FCKeditor' not found in .../catalog/admin/includes/functions/html_output.php on line 345 Please, give me an idea why thi could happen
  8. kaabuks

    Google Analytics module

    I have the same problem on Firefox. Page works only when entered without www, otherwise I get: Fatal error: Call to a member function add_current_page() on a non-object in /var/www/vhosts/gu-gu.lt/httpdocs/catalog/includes/application_top.php on line 321 Please help us
  9. Found a solution: "Add category parent to begining of URLs" must be set to "true"
  10. please help, the shop is working and I need to fix a bug quickly I'm using 2.2-10 version of SEO. When I try to see a product which is in a subcategory I get message: The page isn't redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
×