Jump to content
Latest News: (loading..)

All Activity

This stream auto-updates     

  1. Past hour
  2. Yepi

    QTPro BS

    My buy now button with quantity field: echo ' <div class="pls_margin"><span class="text">' . TEXT_ENTER_QUANTITY . ' ' . tep_draw_input_field('cart_quantity', '1', 'style="width: 70px;" min="0"', 'number') . '</span> ' . tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_draw_button(IMAGE_BUTTON_IN_CART, 'fa fa-shopping-cart', null, 'primary', array('params' => 'data-has-attributes="' . (($products_attributes['total'] > 0) ? '1' : '0') . '" data-in-stock="' . (int)$product_info['products_quantity'] . '" data-product-id="' . (int)$product_info['products_id'] . '"'), 'btn btn-success btn-block btn-lg') .'</div>';
  3. Thank you very much Zahid for a great new contribution to the community !!! Congratulations !!
  4. Yepi

    QTPro BS

    again without proper function. always the duplicate entries I do not get it
  5. Jack_mcs

    Category Images

    @ce7All versions of oscommerce have used the index.php file to show the categories that are nested (sub-categories) and the categories that have products. For the ones that have products, the products were shown instead of additional sub-categories. But there was a code change available to show both. In the CE version, the code to list the categories for each section was moved to modules in those module groups. All those modules do is display the sub-categories of the category currently showing. Neither will show products. You can use the included new products module if you want to show new products in those sub-categories or install an addon like Featured Products if you want to control which products show. If you want the products to be controlled by the category modules, you will need to edit those modules. Though that is defeating the purpose of the modules and I don't recommend it. This line of questions is beyond the scope of this support thread so please open a new thread if you wish to continue it.
  6. Yepi

    QTPro BS

    why does it work with $HTTP_POST_VARS $cart->add_cart($_POST['products_id'], $cart->get_quantity(tep_get_uprid($_POST['products_id'], $attributes))+ $HTTP_POST_VARS['cart_quantity'], $attributes); and not with $_POST $cart->add_cart($_POST['products_id'], $cart->get_quantity(tep_get_uprid($_POST['products_id'], $attributes))+ $_POST['cart_quantity'], $attributes);
  7. Yepi

    QTPro BS

    hello Rainer, what can it be that products from product_info are placed twice in the shopping cart? I mean, the quantity field. // customer adds a product from the products page case 'add_product' : if (isset($_POST['products_id']) && is_numeric($_POST['products_id'])) { //++++ QT Pro: Begin Changed code $attributes=array(); if (isset($_POST['attrcomb']) && (preg_match("/^\d{1,10}-\d{1,10}(,\d{1,10}-\d{1,10})*$/",$_POST['attrcomb']))) { $attrlist=explode(',',$_POST['attrcomb']); foreach ($attrlist as $attr) { list($oid, $oval)=explode('-',$attr); if (is_numeric($oid) && $oid==(int)$oid && is_numeric($oval) && $oval==(int)$oval) $attributes[$oid]=$oval; } } if (isset($_POST['id']) && is_array($_POST['id'])) { foreach ($_POST['id'] as $key=>$val) { if (is_numeric($key) && $key==(int)$key && is_numeric($val) && $val==(int)$val) $attributes=$attributes + $_POST['id']; } } $cart->add_cart($_POST['products_id'], $cart->get_quantity(tep_get_uprid($_POST['products_id'], $attributes)) + $_POST['cart_quantity'], $attributes); //++++ QT Pro: End Changed Code } $messageStack->add_session('product_action', sprintf(PRODUCT_ADDED, tep_get_products_name((int)$_POST['products_id'])), 'success'); tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break;
  8. Today
  9. Moxamint

    Jssor Slider

    Why would that drive the visitor nuts? Just curious. Thanks, Eddy
  10. azpro

    Jssor Slider

    and possibly drives the website visitor nuts .. be careful!
  11. pafranklin

    Jssor Slider

    Hi All, I'm loving this slider (kindly provided by Jack_mcs) and just one question if anyone familiar. Is there a way for the display of the slider images to be random rather than in the order they were added? A random display would make it look fresh and different every time. Many thanks in advance. Paul
  12. ce7

    Category Images

    @Jack_mcs Hi Jack, Do you mind to explain what is different these two? I installed 3 more websites for testing, i just can't understand the logic of the category and product listing from Frozen version... The image below, as mentioned by @BrockleyJohnthat it can't mix the product & categories, otherwise only see the products at the main page. However the new website, clean without addons, the original 234.1Edge version, if mix products and categories, doesn't matter on main page or on sub-categories page, it just not showing anything. With/without New product set as true. I had set Categories Image On, New Product Off first, and no products showing, then Categories Image On, New product On same no product show up. However if i moved the product to subcategories, without products, it did show up both categories and products in New Product area, that seems OK, but no, it is not really.... The reason I say so is because when you click on the categories/sub-category which should have the product from my normal web browsing experiences, but it is empty, not showing anything... You can see image below under software/simulation have a product SWAT3, logically in the front end if you click on that category/sub-category, it should show the product withing that category/subcategory on the index page, but when i click on the simulation subcategory, it shows empty.... I really dont know how these index, index_nesting, index_product setting so that it can show up the way I want it to be, do you have an example of your setting? I had check the post from @Dan Cole showing up @kymation Jim's boostrap website...I have post there for my question regard to sub-categories as well.... Thank you so much again for your reply and information. Hopefully with images attached this time, i can explained myself better (Please excuse me i am not native English speaker...😂) Thanks! Lyn
  13. raiwa

    QTPro BS

    @altoid, Steve, sorry I forgot this detail: Sort order support and configuration entry is only added if the sort order column is detected on module installation. As you added the sort order at a later point, you need to uninstall and reinstall the product_info/QTPro options module. Then you will see the Configuration entry "Use Option/Attribute Sort Order" below " Show default "Please Select" option"
  14. I wanted to use user.css to change product image container attributes (e.g. #cboxTitle height) and add product's name to the shown picture. I don't know if someone has already done the stuff below in 2.3.4.1 CE. in includes/modules/header_tags/ht_product_colorbox.php find: $oscTemplate->addBlock('<link rel="stylesheet" href="ext/colorbox/colorbox.css" />' . "\n", 'header_tags'); immediately after add: $oscTemplate->addBlock('<link rel="stylesheet" href="user.css" />' . "\n", 'header_tags'); in user.css to make some more space for the products_name (see below): #cboxTitle {height:75px;color:#171515;} #cboxLoadedContent {padding-bottom:55px;} To use language dependent string instead of the generic "Image n of m" and to add product name under the shown product image find: if (in_array(basename($PHP_SELF), $pages_array)) { immediately after add: if (isset( $_REQUEST['products_id'])) { $product_info_query = tep_db_query("select pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$_REQUEST['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$GLOBALS['languages_id'] . "'"); $product_info = tep_db_fetch_array($product_info_query); } replace this very long line $oscTemplate->addBlock('<script>var ImgCount ... $this->group); with $oscTemplate->addBlock( '<script>var ImgCount = $(".piGal").data("imgcount"); $(function() { $(\'.piGal\').css({\'visibility\': \'hidden\'}); $(\'.piGal\').photosetGrid({ gutter: \'5px\', layout: ""+ ImgCount +"", width: \'100%\', highresLinks: true,rel: \'pigallery\', onComplete: function() { $(\'.piGal\').css({\'visibility\': \'visible\'}); $(\'.piGal a\').colorbox({maxHeight: \'90%\', maxWidth: \'90%\', title: \'' . $product_info['products_name'] . '\', current:\'' . TEXT_CURRENT_OF_TOTAL .'\', rel: \'pigallery\'}); $(\'.piGal img\').each(function() { var imgid = $(this).attr(\'id\') ? $(this).attr(\'id\').substring(9) : 0; if ( $(\'#piGalDiv_\' + imgid).length ) { $(this).parent().colorbox({ inline: true, href: "#piGalDiv_" + imgid }); } }); }});});</script>', $this->group);} in includes/languages/english/product_info.php add define('TEXT_CURRENT_OF_TOTAL','Image {current}/{total}'); and in includes/languages/finnish/product_info.php define('TEXT_CURRENT_OF_TOTAL','Kuva {current}/{total}'); Comments?
  15. altoid

    QTPro BS

    Hello, I believe I have the latest version of QT Pro.. oscom-qtpro-bs-e317m-0xjSb for product info modules I have cm_pi_qtpro_options cm_pi_qtpro_table My options settings are: I can add the descending parameter and report back.
  16. Jack_mcs

    Category Images

    Just to be clear, there are two category listing modules: one in the index nested group and one in the index products group. They only apply to those groups and will only show sub-categories belonging to the category being shown.
  17. unisecureus

    Chrome now marks all HTTP sites as insecure

    Google Chrome Now Labels HTTP Sites as 'Not Secure' It's a warning worth heeding. ... “Encryption is something that web users should expect by default,” says Chrome security product manager Emily Schechter. The use of HTTP has privacy implications as well.
  18. JcM simple image pan and zoom CE A simple add-on to let you place product image on your product info page. It uses the main product image only and gives you the ability to Pan and Zoom on that image. Two versions are available (select the desired template file to run). 1) This has only one image and a zoom circle is moved around that same image to show zoomed in detail. 2) Two display boxs are show and a zoom box is used to show the zoomed in detail in second box as you pan around the first image. You can play with the code in the template file if you need to change the sizes. Again totally standalone with no core code change. Simply copy all files of the into relevant sections and go to admin modules /content and install. That’s it Enjoy.
  19. Downer

    Realex payment gateway

    thank you will try
  20. RainerVoss

    Ladezeit zu lang

    Hat sich erledigt. Fehler gefunden. Pfad zur Cache-Datei war fehlerhaft.
  21. Yes, you can definitely open two different stores, one under www.mystore.com (for example), and the other at its subdomain, wholesale store (for example). Also, to make sure that this is clear, you'll want to operate these separately on two different accounts.
  22. which is the best support number for helping to fix QuickBooks Software errors ?Please give me a answer
  23. honda4

    Fake accounts

    SPOT ON! I think this will work for me also. It looks like an easy fix, which (up to now) will stop all my fake account creations.....
  24. ocs1409

    2.4 Series

    can you send me the link to the github by pm ? thanks eric
  25. I suspect you are mixing products and categories at the same level - if you do that, you only see the products in the main part of the page, eg. A top level category B subcategory 1 C subcategory 2 product 1 product 2 if you focus on A, all you see is product 1 and product 2 This page has always worked like this on all versions of osc - you have to put all the products at the edges of the category structure
  26. ce7

    Category Images

    @Jack_mcs Hi Jack, Thanks to point out the product_kisting moudel, i did went back to Check all my installations one by one, i think the database or confg maybe broken some stage, trying to reinstall the sql one by one. Once again, thanks. Lyn
  1. Load more activity
×