Jump to content

radhavallabh

Members
  • Content count

    396
  • Joined

  • Last visited


Reputation Activity

  1. Like
    radhavallabh reacted to burt in Bogus: Manufacturer dropdown   
    I turned it off in admin > configuration > customer_details, just for this demo.  
  2. Like
    radhavallabh reacted to burt in Bogus: Manufacturer dropdown   
    It should be fixed now?  Looks like the file got corrupted when I FTP'd it...
    Thanks for the heads up.
  3. Thanks
    radhavallabh got a reaction from burt in Bogus: Manufacturer dropdown   
    On the test site right now! Still On the way to install it to update my Live shop!😉
  4. Like
    radhavallabh reacted to burt in Phoenix Announcements   
    CE Phoenix
    Phoenix is the Master Community Version of osCommerce

    https://github.com/gburton/Responsive-osCommerce/releases
    https://www.oscommerce.com/Products
    Demo Site
    https://template.me.uk/phoenix/index.php
    External Libraries
    https://github.com/gburton/Responsive-osCommerce/wiki/External-Libraries
    PHP Version
    Minimum Maximum 7.0 7.1.x Image Credits
    Images in the default installation are copyright their respective owners;
    Image Owner osCommerce Logo osCommerce Phoenix Logo G Burton Oranges Eelffica from Pixabay Lemons Eelffica from Pixabay Pears Eelffica from Pixabay Apples Eelffica from Pixabay Tomatoes Rocky_H from Pixabay Heart Gerhard Gellinger from Pixabay Thank You
    To all shopowners, developers, consultants and business owners who have supported the project over the years.
    Beer Tokens
    "Beer Tokens" are not used to purchase beer - they are used to give time into the Project. I am hopeful that enough shopowners, developers, consultants and businesses ... will join the Phoenix Club to allow two professional developers to work on the code on an ad-hoc basis.
    Join the Phoenix Club
    If you wish to sponsor ongoing and future development, please consider joining the club https://forums.oscommerce.com/clubs/1-phoenix/
  5. Like
    radhavallabh reacted to JcMagpie in Support thread for featured products with Ribbon v2.3.4.1 CE   
    Sorry but no. Nothing is missing as cats are shown on index so it will show.
    It's only hidden if page is not index.
  6. 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.
  7. 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 .

  8. 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)); ?>  
  9. 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.
     
  10. 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
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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.

     
  16. Like
    radhavallabh reacted to clustersolutions in BS4 admin   
    No doubt! Admin is very important. Reporting, machine learning, marketing like email campaign, integration with Sendgrid/MailChimp and etc. That stuffs are important for conversions. How many of you actually use the products_view data? And how many of you know products_view indiscriminately tracks robot clicks (at least the last time I checked it) too? Just imagine if the "admin" would collect all the clicks and etc of a user session and gaining insight on visitor habits...it's gonna be in admin.
     
     
  17. Like
    radhavallabh reacted to clustersolutions in BS4 admin   
    I hv not looked at the internals of BS since 2014...
    So to check it out I have just merged the latest and greatest...frozen and this admin...
    https://github.com/clustersolutions/osCommerce-234-bootstrap/tree/osc2nuke
    The installer ran, but I got these errors, they are stored in the DB configurations table? I am running PHP 7.2.5...

  18. Like
    radhavallabh reacted to oscMarket in BS4 admin   
    Admin Dashboard Content Modules added to the repository.

    Now can create your own Content modules for the admin, just like is is done for the front-end!
    This means that the admin can also be Modularized.

    https://github.com/osc2nuke/oscommerce-2.3.4.1-CE

    Have Fun 
  19. Like
    radhavallabh reacted to oscMarket in BS4 admin   
    oscommerce ce [Frozen]
     
    Sure,  only the HTML is changed.
     
  20. Like
    radhavallabh reacted to piernas in ULTIMATE Seo Urls 5 - by FWR Media   
    @radhavallabh yes
  21. Like
    radhavallabh reacted to piernas in ULTIMATE Seo Urls 5 - by FWR Media   
    I've been working on this addon to fix some issues and improve some things like multilanguage support. Anyone here would like to test the code before submitting to the addons section?
    Here is a short list of changes:
    Latest responsive oscommerce compatible. Moved usu_base_filename function from application_top to its own file to simplify core edits. Fix for sitemaps not showing manufacturer rewritten URLs Fix for hreflang tags module - now categories shows correct language Corrected location of character conversion packs Allow to processs links outside root folder (ie. ext/directory). This is useful for addons like Twitter typeahead. Fixed (some) cache problems. For now the only issue I still find is with mysql cache: Looks like the table is being truncated on every page load. Any help with locating the problem will be welcome.
     
    Ultimate_Seo_Urls_5_PRO_BS_209 beta1.zip
  22. Like
    radhavallabh reacted to JcMagpie in Support thread for Faviconit Header_tag add-on   
    Faviconit Header_tag addon. For Frozen
    A simple header_tag that installs the standard faviconit links.
    Just copy the files over as provided and install and turn on.
    Go to the “JcMJcMfavicon” folder and replace the files with your own icon files which you generate from http://faviconit.com/en
    That’ it enjoy.

  23. Like
    radhavallabh reacted to valquiria23 in Support thread for Faviconit Header_tag add-on   
    thank you very much Zahid @JcMagpie for another awesome addon !!!
    It is an excellent contribution to the community! 
    Surely @radhavallabh will be interest.
    Best regards
    Valqui
  24. Like
    radhavallabh reacted to JcMagpie in Support thread for JcM Adaptive Images addon   
    If you already have a solution then just keep using it as you have already done all the work!
    The 2 are very different. The Kiss-It add-on is very good but it requires several changes to core OsC.
    This Add-on is different in that it requires no core changes. The only change is adding 3 lines of code to you .htaccess file. It also only makes the new images that are required and this is done automatically.
    Negatives, you need to have good quality images to begin with. If your images are low quality then this is not the add-on for you as scaling up of low quality images results in fuzzy images. The php will try and sharpen the image but as they say you can't polish a “T” :)
    I recommend using sharp good quality 500x400 or 800x640 images as your base image and then letting the script make all the other images. Size is up to you but you need to stick to one aspect ratio. This gives good quality images for all devices. Keep all base images the same size, if you need to size up add padding do not scale up if image quality is low.
    Use a good quality image tool to process your images to be compressed and remove all unnecessary meta data.
  25. Like
    radhavallabh reacted to Jack_mcs in [CONTRIBUTION] Ultimate SEO URLs v2.1 - by Chemo   
    @radhavallabhI haven't tried the addons @raiwamentioned so I can't say how well they work. But be aware that they may not work with the google sitemap addon which, in my opinion, all sites should install.
    Also, I'm curious, why does the numbers in the url bother you? This has come up many times before but I don't recall a reason for it. They don't have an affect on SEO so the only reason I can think of is appearance.
×