Jump to content

spidometrs

Members
  • Content count

    101
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by spidometrs

  1. I want to do translit? ?=>a ?=>b ?=>v ?=>g .......... As I can do this? In what file must I translit add? Thanks!
  2. Hi guys! My simple idea for a blog in osCommerce - you need to use only two conditions: - Add one variable to table categories_description - categories_style_type - Add one variable for the products table - products_blog_status Then, in the files: new_products.php, product_listing.php, product_info.php: if ($categories_style_type == '1') { } elseif { ($categories_style_type == '2') } else {} So you can switch between different design for the product and for the blog. Further, the modules in a database query, add: end p.categories_style_type = '1' So you can disable this blog in the product modules. For comparison, look like a different page: - Category product page http://titanium.oscommerce.ru/dlya-muzhchin/obuv - Blog page category http://titanium.oscommerce.ru/blog/2016 - Product page http://titanium.oscommerce.ru/dlya-muzhchin/dzhinsy-kurtki/dzhinsy/3301-dzhinsy-slim - Blog page http://titanium.oscommerce.ru/blog/2016/chem-nosit-palto In this case, it is fully supported by related content. Look, maybe you will like this idea.
  3. spidometrs

    [Contribution] Linked Products

    Yes, I have an old store. PHP4 quickly runs on Windows Server 2012. Other PHP5 + have significant problems for Windows. If I install a new store, it's definitely not Oscommerce. Oscommerce. has already died 7-8 years ago. And it's sad ...
  4. spidometrs

    [Contribution] Linked Products

    The module also uses functions that are not in osCommerce. get_type_options get_linked_listing get_current_listing get_type_id I think that this module could never function on OSC 2.2 .. // BOF - Zappo - Linked Products - Product Types - ONE LINE - Get all Products Type Options $TypeOptions = get_type_options($product_info['type_id']); // BOF - Zappo - Linked Products - Show/Hide Options - Show Linked Product's Options (when viewing 2nd Product Listing) // - Zappo - Replace products_id with selected Linked Product's product_id (for searching Attributes) $LinkOpt_ProdID = $HTTP_GET_VARS['products_id']; $LinkOpt_ID = ''; if ($TypeOptions['type_linked_options'] == 'Linked' && isset($HTTP_GET_VARS['LpID']) && tep_has_product_attributes($HTTP_GET_VARS['LpID'])) { $LinkOpt_ProdID = $HTTP_GET_VARS['LpID']; $LinkOpt_ID = '_' . $HTTP_GET_VARS['LpID']; // Use this to find the correct Options for this product in application_top } // BOF - Zappo - Linked Products - Find current category (And if it's showing products) $TreeArr = get_linked_listing($product_info['products_id']); if (!empty($HTTP_GET_VARS['LcPath'])) { $LcPathArr = (explode('_',$HTTP_GET_VARS['LcPath'])) ? explode('_',$HTTP_GET_VARS['LcPath']) : array($HTTP_GET_VARS['LcPath']); $CurrCatid = $LcPathArr[count($LcPathArr)-1]; } else { if (count($TreeArr) > 1) { // If CatTreeArray has multiple categories (or products) - Set as Current $CurrCatid = 'top'; $LcPathArr[0] = 'top'; } else { foreach ($TreeArr as $CatParent => $Cat) { $LcPathArr[] = $CatParent; $cC = 0; while(is_array($Cat[$cC]) && count($Cat[$cC]) == 1) { // - Zappo - While the current Category has no multiple items... foreach ($Cat[$cC] as $CatParent[$cC+1] => $Cat[$cC+1]) { if (!is_array($Cat[$cC+1]) && count($CatParent[$cC] == 1)) { // Only one item found? $LcPathArr[] = $CatParent[$cC]; $CatParent = $CatParent[$cC]; } else { $LcPathArr[] = $CatParent[$cC+1]; $CatParent = $CatParent[$cC+1]; } $cC++; } } } // Checked the Array --> We've found multiple items and set the parentCats to the $LcPathArr $CurrCatid = $CatParent; // Set found category as Current } } $CurrentArray = get_current_listing($TreeArr,$LcPathArr, $CurrCatid); if (is_array($CurrentArray)) { // Check if $CurrentArray was gathered correctly --> Else drop the whole thing... foreach ($CurrentArray as $ItemID => $ItemVal) { $cat_depth = (!is_array($ItemVal) || $cat_depth == 'products') ? 'products' : 'categories'; } } // EOF - Zappo - Linked Products - Find current category (And if it's showing products) // - Zappo - Added Check for Options, and to hide them if They are currently not needed (Linked Listing and stuff) $HideOptions = (empty($LinkOpt_ID) && $CurrentArray && $cat_depth == 'categories') ? 'Yep' : (($cat_depth == 'products' || !empty($LinkOpt_ID)) ? 'Nope' : 'Yep'); $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$LinkOpt_ProdID . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'"); $products_attributes = tep_db_fetch_array($products_attributes_query);
  5. spidometrs

    [Contribution] Linked Products

    Hi guys! I have osCommerce OM v2.2, PHP4, MSQL4. I started installing the Linked Products v1.1.0 module and also got errors. See the screenshot. Line 484 has an error in the admin / product_types.php file. See screenshot 2. Line 484 has eval ($ RowVal ['input']); How can this be remedied? Thank you in advance!
  6. How to to explain it to the customer? There are general rules on the Internet: if the field is empty - everything has to be removed. This is not true? I do not insist. I'm just saying my opinion.
  7. It is impossible to create a module. This built-in capabilities. This is better than the Module.
  8. If the user leaves the field blank and presses the button Apply, and then he wants to remove the discount. Discount must be erased. This is logical.
  9. I apply the latest updates Discount Codes 4.1 BS.
  10. spidometrs

    [Contribution] Ship In Cart

    cm_sc_shipping.php end spu.php
  11. Hi, Rainer @@raiwa, I found one problem: If I enter the discount code, the module shows the price discount, the module order total, and exchanges the amount of payment. After that, I clean a discount code, discounts from the field, and click the Apply button. In this case, the discount all as shown in the module - order total. Discount is not cleared. It is not right. If the discount field is empty, the discount should not be included in the counting.
  12. spidometrs

    [Contribution] Ship In Cart

    Hi, Rainer @@raiwa, I made changes to two files. Now available to all modules in all browsers. Thank you very much!
  13. Hello, Rolf! I did it very simply. The file includes/languages/english.php add line 28: define('DATE_FORMAT_SHORT_DAY', '%d'); define('DATE_FORMAT_SHORT_MONTH', '%B'); At the end of the file \includes\functions\general.php add: // DAY function tep_date_short_day($raw_date) { if ( ($raw_date == '0000-00-00 00:00:00') || ($raw_date == '') ) return false; $year = (int)substr($raw_date, 0, 4); $month = (int)substr($raw_date, 5, 2); $day = (int)substr($raw_date, 8, 2); $hour = (int)substr($raw_date, 11, 2); $minute = (int)substr($raw_date, 14, 2); $second = (int)substr($raw_date, 17, 2); return strftime(DATE_FORMAT_SHORT_DAY, mktime($hour,$minute,$second,$month,$day,$year)); } // MONTH function tep_date_short_month($raw_date) { if ( ($raw_date == '0000-00-00 00:00:00') || ($raw_date == '') ) return false; $year = (int)substr($raw_date, 0, 4); $month = (int)substr($raw_date, 5, 2); $day = (int)substr($raw_date, 8, 2); $hour = (int)substr($raw_date, 11, 2); $minute = (int)substr($raw_date, 14, 2); $second = (int)substr($raw_date, 17, 2); return strftime(DATE_FORMAT_SHORT_MONTH, mktime($hour,$minute,$second,$month,$day,$year)); } The file /includes/modules/product_listing.php use the date code: $prod_list_contents .= ' <div class="entry-timeline">' . "\n"; $prod_list_contents .= ' ' . tep_date_short_day($listing['products_date_added']) . '<span>' . substr(tep_date_short_month($listing['products_date_added']), 0, 3) . '</span>' . "\n"; $prod_list_contents .= ' <div class="timeline-divider"></div>' . "\n"; $prod_list_contents .= ' </div>' . "\n";
  14. spidometrs

    [Contribution] Ship In Cart

    I want to clarify: if it is to update the page with the F5. If you press the Apply button module, then all three modules are available. This is normal?
  15. spidometrs

    [Contribution] Ship In Cart

    @@raiwa I found another strange error. I installed three shipping module. 1. Module Russian Post. For the whole of Russia. 2. Module Express delivery. For one city. 3. Pickup module with zip code. For one city. If you logged: - Access to all 3 modules. If not logged in: - in Mozilla is available - 3 modules - in Opera is available - 1 module - Module Russian Post. For the whole of Russia. - in Chrome - 3 modules available If not logged in, and reload the page later, then: - Available 1 module - Module Russian Post. For the whole of Russia. - Other modules are not available, or all 3 are available in Mozilla and Chrome. In the Opera is not available. This is a complicated error. This error should be catch attention. But the issue is.
  16. Ah, I understand. Thank you!
  17. @@raiwa Module shopping cart does not IMAGE_BUTTON_CHECKOUT button. How to calculate the quantity of products and their prices?
  18. @@raiwa In this case two buttons: IMAGE_BUTTON_CHECKOUT and TEXT_PERESCHITAT - remain above the form of coupons. And it's wrong. I want to place the shape of coupons above the buttons. But then the <form></form> of coupons will be in the <form><form>Coupon Code</form></form> of the shopping cart.
  19. @@raiwa Hello, Rainer! How do I install Discount Codes BS - in the form of the shopping cart? I want to place the module here: <?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_SHOPPING_CART, 'action=update_product')); ?> <div> .................. ............ </div> ////////////////// Discount Codes 4.1 BS <?php echo $oscTemplate->getContent('shopping_cart_discount_code'); ?> //////////////// Discount Codes 4.1 BS END <div> <?php echo tep_draw_button(IMAGE_BUTTON_CHECKOUT, 'glyphicon glyphicon-chevron-right', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'), 'primary', NULL, 'button button-3d nomargin fright'); ?> <?php echo tep_draw_button(TEXT_PERESCHITAT, 'glyphicon glyphicon-refresh', NULL, NULL, NULL, 'button button-3d notopmargin fright'); ?> </div> </form> I created a folder and put shopping_cart_discount_code to the module. The module is displayed. See screenshot http://spido.ru/code.png But I have a problem with the processing of the request. I have to remove the form module and modify the link "Apply" button? Can you suggest how to edit a module, for his work in the form of the shopping cart? Thank you in advance!
  20. spidometrs

    [Contribution] Ship In Cart

    @@raiwa Rainer, tell me, where is the price of style? Price is shown as: <strong>123 EUR</strong> In which file I can edit <strong>123 EUR</strong>, or $order->info['total'] ;? I want to replace in the <div>123 EUR</div> See screenshot http://spido.ru/cart_1.png Thank you in advance!
  21. spidometrs

    [Contribution] Ship In Cart

    Can you tell me which shipping module uses the ZIP CODE to calculate the shipping cost?
  22. spidometrs

    [Contribution] Ship In Cart

    @@raiwa I replaced the file. Now addon works well. Thank you very much!
  23. spidometrs

    [Contribution] Ship In Cart

    @@raiwa Hello, Rainer! Today, I installed two modules of the package http://addons.oscommerce.com/info/9467/v,23 During testing, I found a mistake. I'm doing a test shop. My store has Russian as default 'countries and you. I set up two units of shipment to Russia. shipping is not supported in other countries. I have not logged in. I put the product in the shopping cart and went to the shopping cart. For the first time, module Ship In Cart Me shows that Russia and other countries to choose from. See screenshot 1 http://spido.ru/cart_1.png I choose another country and the module is no longer shows a selection of other countries. See screenshot 2 http://spido.ru/cart_2.png But I'm such a mistake?
  24. I was just thinking ... My store has three currencies. How much currency is your store? One currency? Maybe this is the problem?
×