Jump to content
Latest News: (loading..)

radhavallabh

Members
  • Content count

    386
  • Joined

  • Last visited


Reputation Activity

  1. Like
    radhavallabh reacted to JcMagpie in Display default Size and Color in product Listing Oscommerce CE   
    Oh and hack will only work if selected attribute is the first entered for all product! as osC simply sorts by order entered. So if on say a new product you add size as the first attribute your stuffed! Guess you could add another sort before the filter? but it's all getting very messy.
  2. Thanks
    radhavallabh reacted to JcMagpie in Display default Size and Color in product Listing Oscommerce CE   
    NOT a good solution but if your stuck then a simple hack to code can give this. But it's crude and not very nice as you end up hard coding the attribute name into the code!! I'll PM you the hack as it's not fit for public display .

  3. Like
    radhavallabh reacted to JcMagpie in Display default Size and Color in product Listing Oscommerce CE   
    Then you need to do some more work!
    1) make a new function to out put only part of the array! sometnig like this
    $newArray = array(); foreach($array as $value) { $newArray[] = $value['groupname']; } 2) use the PHP command array_slice or map or another! to split you array in to chunks and only output the part you need. somthing like this, ( stright out of the php manual) there are other ways this can be done also (array_chunk)
    <?php $input = array("a", "b", "c", "d", "e"); $output = array_slice($input, 2); // returns "c", "d", and "e" $output = array_slice($input, -2, 1); // returns "d" $output = array_slice($input, 0, 3); // returns "a", "b", and "c" // note the differences in the array keys print_r(array_slice($input, 2, -1)); print_r(array_slice($input, 2, -1, true)); ?>  
  4. Like
    radhavallabh reacted to JcMagpie in Display default Size and Color in product Listing Oscommerce CE   
    Had a little play with this to see what could be done with existing code? Shamelessly using and abusing existing code posted here on the forum and other places so I take no credit for this.
    Not a real elegant solution but you can do some basic stuff with existing attributes. Fair warning this is making core code changes.
    We can do 2 things, first simply display the attributes in the listings. Simply informing the customer what options are available. They can then go to product info page and see details.

    Or we can display the attributes and allow selection in the listing to add to cart! (Not tested so be carefull). As you can see got rid of the drop down so customer can see all options and simply select which is required.

    To make this work properly as requested with default products we will need to change how we use attributes. We will need to add the stock product to the attributes at zero cost. So say the white tee shirt in size Large is your default product, both white and Large are added to attributes at zero cost. We the order the attributes by cost so that the default is displayed first in the options. That's about as much as we can do with the current code.
    ok so here are the core code edit's these are for CE BS3 Frozen only
    For no radio button shown
    In public_html/includes/functions/html_output.php
    add this to end of file after last } and before ?> if it exists.
    // Output a form radio menu for product info page function tep_draw_radio_menu($name, $values, $default = '', $parameters = '', $required = false) { $field =''; if (empty($default) && isset($GLOBALS[$name])) $default = stripslashes($GLOBALS[$name]); for ($i=0, $n=sizeof($values); $i<$n; $i++) { $value = tep_output_string($values[$i]['id']); //$field .= '<input type="radio" name="' . $name . '" value="' . $value . '"'; //$field .= ' '; $field .= '' . tep_output_string($values[$i]['text'], array('"' => '&quot;', '\'' => '&#039;', '<' => '&lt;', '>' => '&gt;')) . '&nbsp;'; } $field .= ''; if ($required == true) $field .= TEXT_FIELD_REQUIRED; return $field; } if you do wish to show the radio buttons use this
    In public_html/includes/functions/html_output.php
    add this to end of file after last } and before ?> if it exists.
    // Output a form radio menu for product info page function tep_draw_radio_menu($name, $values, $default = '', $parameters = '', $required = false) { $field =''; if (empty($default) && isset($GLOBALS[$name])) $default = stripslashes($GLOBALS[$name]); for ($i=0, $n=sizeof($values); $i<$n; $i++) { $value = tep_output_string($values[$i]['id']); $field .= '<input type="radio" name="' . $name . '" value="' . $value . '"'; $field .= ' '; $field .= '>' . tep_output_string($values[$i]['text'], array('"' => '&quot;', '\'' => '&#039;', '<' => '&lt;', '>' => '&gt;')) . '&nbsp;'; } $field .= ''; if ($required == true) $field .= TEXT_FIELD_REQUIRED; return $field; }  
    Ok now to get the attributes into product_listings
    In public_html/includes/modules/product_listing.php
    find
    if (tep_not_null($extra_list_contents)) { $prod_list_contents .= ' <dl class="dl-horizontal list-group-item-text">'; $prod_list_contents .= $extra_list_contents; $prod_list_contents .= ' </dl>'; } and after add this,
    // add the atributes to listing starts here $prod_list_contents .= '<form name="buy_now_' . $listing['products_id'] . '" method="post" action="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now_form', 'NONSSL') . '">'; $product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . $listing['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . $languages_id . "'"); $product_info = tep_db_fetch_array($product_info_query); $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . $listing['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . $languages_id . "'"); $products_attributes = tep_db_fetch_array($products_attributes_query); if ($products_attributes['total'] > 0) { $prod_list_contents .= '<div class="clearfix"></div>'; $products_options_name_query = tep_db_query("select distinct popt.products_options_id, popt.products_options_name from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . $listing['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . $languages_id . "'"); while ($products_options_name = tep_db_fetch_array($products_options_name_query)) { $products_options_array = array(); $prod_list_contents .= '<label>' . $products_options_name['products_options_name'] . ':</label><br />'; $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . $listing['products_id'] . "' and pa.options_id = '" . $products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . $languages_id . "'"); while ($products_options = tep_db_fetch_array($products_options_query)) { $products_options_array[] = array('id' => $products_options['products_options_values_id'], 'text' => $products_options['products_options_values_name']); if ($products_options['options_values_price'] != '0') { $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') '; } } //$prod_list_contents .= tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $cart->contents[$_GET['products_id']]['attributes'][$products_options_name['products_options_id']], 'style="width: 250px;"'). '<br />'; $prod_list_contents .= tep_draw_radio_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $cart->contents[$_GET['products_id']]['attributes'][$products_options_name['products_options_id']], 'style="width: 250px;"'). '<br />'; } } $prod_list_contents .= '<div class="text-right">'; $prod_list_contents .= '<label>Quantity</label>&nbsp;' . tep_draw_input_field('cart_quantity', 1, 'style="width:70px;text-align:center;"'); $prod_list_contents .= '</div>'; // arributes listing ends here  
    If you wish to show stock attribute in list in first position then you will need to add it to atributes at zero cost and sort by price. To do this
    in /public_html/includes/modules/content/product_info/cm_pi_options_attributes.php
    Find
    $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from products_attributes pa, products_options_values pov where pa.products_id = '" . (int)$_GET['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'"); and change to or replace with this,
    $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix from products_attributes pa, products_options_values pov where pa.products_id = '" . (int)$_GET['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'" . 'ORDER BY pa.options_values_price');  
    It can be seen running in display only mode on the test site https://www.justfastfood.com/hardware-graphics-cards-c-1_23.html
    Please note this is just to show what can be done and is NOT beeing recomended as a working solution.  As allways backup before you make any changes. Also this was tested on stock CE BS3 only, I have not idea how it will behave on modified code so you need to do your own testing before using on live site.
     
  5. Like
    radhavallabh got a reaction from JcMagpie in Display default Size and Color in product Listing Oscommerce CE   
    This is so awesome dear!!!🤩 Thank you so much!!
    I Really was messed up right now working on it..It is really of great help.
    All Thankful and grateful to you!!
    😊
    Very Warm Regds./
    Radhavallabh
  6. Like
    radhavallabh reacted to burt in 28d 2019, let's move the Project forward...   
    Thank You to the handful of good guys who felt able to take a chance on them getting some good modules and code without actually knowing what they'd get.  You are stars.  
    Each day in February I'll be adding in a new module/code. 
    Hit the "FOLLOW" button to be notified whenever I reply to this post.
    Demo site is running Bootstrap v4, but ALL 28d offerings will have BOTH a BSv4 version AND a BSv3 version.  If you are a very old version (eg Gold, or early somewhere in between Gold and Frozen), the BSv3 version is for you, but you'll get both in case you do ever update to the latest codebase.
    If you have general questions, or particular questions about each days offerings ... please post them here or PM me.
  7. Like
    radhavallabh reacted to piernas in ULTIMATE Seo Urls 5 - by FWR Media   
    @phi148 I think I fixed the issue. Can you please test it?
     
    Ultimate_Seo_Urls_5_PRO_BS_209_beta_2.zip
  8. Like
    radhavallabh reacted to burt in Recover Cart Sale for CE   
    It's pretty simple, just use common sense.  Common sense tells me I need consent to re-market.  How do I get that consent?  Perhaps a Tickbox on create_account might be enough, linked to acceptance of T&C.  In your T&C page have a paragraph about re-marketing.
    At what point does a person become a Customer?
    after they create an account? after they actually buy something? when they sign up to a mailing list? something else That's an interesting question.  Maybe shopowners should have something in their T&C explaining at what point a person becomes a customer, that wouldn't harm anything to add it in, and maybe helpful in the future should you have to prove anything to anyone.
    Remember also that GDPR does not apply only to customers.  It applies to ANYONE who interacts with your site, it is just that most shopowners direct people to agree to GDPR T&C etc at some point after the potential customer has browsed products etc.
    Whichever point you determine a potential becomes a Customer... you MUST STORE the exact T&C to which a Customer signed up, why;
    In the future, the customer can examine the precise T&C to which he/she
    signed up and if necessary withdraw his consent. To show the GDPR authority in your country the exact T&C to which the
    customer signed up, if the customer complains to that authority.  
  9. Like
    radhavallabh got a reaction from JcMagpie in Recover Cart Sale for CE   
    Thank you so much on the advice for the addons @JcMagpie... I will surely try to incorporate the Recover Cart Sale & Unsold to check which suits..
    And for the advice @Mort-lemur @PiLLaO
    For GDPR I think I can email the customers outside Europe and to the subscribed customers in Europe so GDPR issue may not come up!!
    Thank you again  
    Very Warm Regds.
    radhavallabh
  10. Like
    radhavallabh got a reaction from JcMagpie in Recover Cart Sale for CE   
    Thank you so much on the advice for the addons @JcMagpie... I will surely try to incorporate the Recover Cart Sale & Unsold to check which suits..
    And for the advice @Mort-lemur @PiLLaO
    For GDPR I think I can email the customers outside Europe and to the subscribed customers in Europe so GDPR issue may not come up!!
    Thank you again  
    Very Warm Regds.
    radhavallabh
  11. Like
    radhavallabh reacted to PiLLaO in Recover Cart Sale for CE   
    This addon don't send email, only show the carts
  12. Like
    radhavallabh reacted to Mort-lemur in Recover Cart Sale for CE   
    will probably need a change to ensure you only email people who have agreed to newsletters - GDPR etc............ I stopped using recover carts for this reason.....
  13. Like
    radhavallabh reacted to JcMagpie in Recover Cart Sale for CE   
    Yes it is, talk to @burt he did one as art of 28d thing. Or you can update the old one from here.
     
    Unsold Carts Report 2.0
    or
    Recover Cart Sales for OSC 2.3.1
  14. Like
    radhavallabh reacted to JcMagpie in Recover Cart Sale for CE   
    This works fine with CE, needs a little update to improve layout of report  but works ok. Tested on stock CE so check if you have other add-ons that may conflict.
    Unsold Carts Report 2.0

     
  15. Like
    radhavallabh reacted to raiwa in AJAX Attribute Manager support   
    @radhavallabh,
    This is not related to Ajax Attribute Manager, please post your request in the official support thread for Order Editor.
    rgds
    Rainer
  16. Like
    radhavallabh reacted to JcMagpie in Create Account Success not working in Firefox!   
    Works fine in firefox 60.0.2 64 bit just tested.
  17. Like
    radhavallabh reacted to Smoky Barnable in Create Account Success not working in Firefox!   
    Works fine for me using Firefox 61.0.1. Account created successfully. Nice site by the way. ☺️
  18. Like
    radhavallabh reacted to John W in Create Account Success not working in Firefox!   
    Works for me using Win 7 64bit FF 61.01.
    However, I find Firefox has more problems than it used to.  For instance on Fedex FF will give a redirect error on some links where Chrome works fine. 
    There's a browswer called Brave based on Chrome that is very fast.  Supposedly very secure also.
  19. Like
    radhavallabh got a reaction from Demitry in Horizontal Categories Menu BS   
    @raiwa
    Yes the thumbnailer is at work on the Categories menu when I switch the images on! On second load too it makes a little difference only..
    I guess you are right scope to improve time load with many images in menu does not seem possible.
    @Tsimi
    Yes I have 6 main categories and many subcategories and sub-sub categories due to which a huge load is summing up..
    @Demitry
    Thank for throwing light on this...Yes I guess using the images will not be possible for me now.. Hence will try doing without it!
     
    Thank you so much for guiding me on this.
    Warm Regds./
    radhavallabh
  20. Like
    radhavallabh got a reaction from Demitry in Horizontal Categories Menu BS   
    @raiwa
    Yes the thumbnailer is at work on the Categories menu when I switch the images on! On second load too it makes a little difference only..
    I guess you are right scope to improve time load with many images in menu does not seem possible.
    @Tsimi
    Yes I have 6 main categories and many subcategories and sub-sub categories due to which a huge load is summing up..
    @Demitry
    Thank for throwing light on this...Yes I guess using the images will not be possible for me now.. Hence will try doing without it!
     
    Thank you so much for guiding me on this.
    Warm Regds./
    radhavallabh
  21. Like
    radhavallabh reacted to JcMagpie in Category on Index   
    Yeah very strange, I've not seen that before but as above @radhavallabh had the same problem with poor copy and paste.
  22. Like
    radhavallabh reacted to Moxamint in Category on Index   
    I confirm that the new code added by @Jack_mcs works.
    Cheers, Eddy
  23. Like
    radhavallabh reacted to Harald Ponce de Leon in Forum Software Update (31st July 2018)   
    Hi All..
    The forum software has just been updated to the latest software version, and there are heavy duty tasks still running in the background that will probably take until tomorrow to complete. This includes reindexing all topics and postings (searching will not work until this is complete), reindexing status updates and activities, recounting statistics, and merging the German forum postings into the new German Community club.
    The user accounts from the German forum have successfully been merged into this community. This is a start to adding international support to this forum using the Clubs feature of the forum software to separate foreign communities from the main English content.
    As the forum software update included changes to the user account integration with our main websites, logins and new signups were disabled during the downtime (preventing App Marketplace downloads, sorry) and are now fully functional again.
    Please post here any quirks you may experience regarding the forum software update or user account issues from our main websites.
    Thanks!
    PS, I'm fine. Thanks to those who contacted me in the past. Announcements will be published soon.
  24. Like
    radhavallabh reacted to multimixer in Image Zoom for 2.3.4BS   
    @radhavallabh
    This is not a addon but a module I created for one of my clients. You can contact via pm for more information
  25. Like
    radhavallabh reacted to oscMarket in BS4 admin   
    I use only the admin, what is unchanged since. (cannot tell if anything done to it beside the navbar modules?)
    So basically it remained untouched since.

    Now that i active work on the admin, i see it have A LOT OF POTENTIAL.
    And it makes oscommerce WORTHY again.

    Sure, many not "care" for the admin.
    Yet it is still the place are store-owner most works in.

    Just like it suddenly all became so easy to do things for the front-end.
    Same now anyone can do it for the admin.

    Mainly now for the navigation bar.
    The columnLeft
    And the header_tags.

    I wish i done it earlier.
    I said it many times in the past, that one day i would bend over it.
    I'm happy i done it.

    It was easier then i tought.
    Keep in mind i already bootstrapped it before to BS3.
    But had no cma_*,  bma_*,  hta_*,  nba_*. 
    No oscTemplate etc.

     
×