Jump to content
Latest News: (loading..)

Leaderboard


Popular Content

Showing content with the highest reputation on 08/09/2018 in all areas

  1. 3 points
    burt

    Product Page Layout

    Totally do-able, it is exactly as @raiwa says. Gallery 10 6 Name 20 6 Model 30 3 Price 40 3 Attributes 50 6 Buy 60 3 Reviews 70 3 Description 80 6 You are constrained by the DEPTH of the Gallery, so place a minimum height on this using CSS which would be placed in user.css @media only screen and (min-width : 768px) { div.cm-pi-gallery { min-height: 1000px; } } Change the min-height on this to better reflect your needs. You will then also need to amend tpl_ files for product_info, at the very least; remove clearfix from reviews button tpl restyle price as it would look weird as a h* Prior to the extra tpl_ change for price, you would end up with something like: Of course, how this would look in XS...is debatable, and that is why you can micromanage the layout using those tpl_ files if you so wish. My system for these modules uses only the SM layer.... however, that micro-management is where things get really complicated really quickly and hence why I did not put that level of management into Core.
  2. 1 point
    JcMagpie

    Lost Admin Password

    OSCommerce - Reset a lost admin password To reset the Admin password in newer versions of OSCommerce, you will need to do the following: Login to cPanel, and go to Databases -> phpMyAdmin Click on your OSCommerce database on the right On the next screen, click on the Administrators table Edit the record for the username in this table Replace the contents of the password field with this, then click Go: 6cdd7c57450225fac77427f5962bb726:40 This will reset the password for this user to "pass". Login to the Admin area of your OSCommerce, and then reset your password to something more secure. Also is you have Additional Protection With htaccess/htpasswd then delete that file from admin/
  3. 1 point
    If they are copyrighted then yes you need permission from the copyright holder. If your not sure and they are branded goods then you should ask the brand owner or the distributor you are using for permission.
  4. 1 point
    Dynamic GRPD make for 2.4 and very modulable!
  5. 1 point
    Hotclutch

    Product Page Layout

    This layout is not possible with the stock osCommerce - because you want a 2 column layout and you need to be able to insert rows into each column. This is stock osCommerce on the product_info.php: <div class="row is-product"> <?php echo $oscTemplate->getContent('product_info'); ?> </div> This is what you need to do: <div class="row"> <div class="col"><?php echo $oscTemplate->getContent('product_info'); ?></div> <div class="col"><?php echo $oscTemplate->getContent('product_info2'); ?></div> </div>
  6. 1 point
    BrockleyJohn

    Product Page Layout

    I agree that doesn't fit very well with the delivered code. The layout that best represents what you want is two divs side by side, each half the width on sm and above, with the one on the right containing everything else that's not the gallery. The easiest way to achieve this is two extra modules, one that begins the container and another that ends it.
  7. 1 point
    raiwa

    Product Page Layout

    The product info page in CE Frozen is already modular, no need for the old add-on. You need some additional css adjusting. Try to add the pull right class to all template files except the gallery. Or fix the gallery min height to at least the height of all other modules you have on the right side. This can be tricky due to the height depends on the description length, amount of options etc. You may also need to take extra care for mobile view.
  8. 1 point
    Not a problem will have a look at it in the morning.
  9. 1 point
    raiwa

    default shipping method change.

    Between: the above will also do it for different default selected shipping modules for different shipping zones.
  10. 1 point
    raiwa

    default shipping method change.

    Even more simple: Add a configuration setting if cheapest or first shipping method should be selected by default: INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Set Default Selected Shipping Method?', 'SHIPPING_DEFAULT_METHOD_FIRST', 'true', 'Choose if default selected shipping method is cheapest (false) or first(true) in the list.', '7', '7', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now()); Then use sort order to show the desired default method first. And in includes/classes/shipping.php: if ( defined('SHIPPING_DEFAULT_METHOD_FIRST') && SHIPPING_DEFAULT_METHOD_FIRST == 'true' ) { $cheapest = $rates[0]; } else { $cheapest = false; for ($i=0, $n=sizeof($rates); $i<$n; $i++) { if (is_array($cheapest)) { if ($rates[$i]['cost'] < $cheapest['cost']) { $cheapest = $rates[$i]; } } else { $cheapest = $rates[$i]; } } } return $cheapest;
  11. 1 point
    ArtcoInc

    default shipping method change.

    @burt If your suggestion works (and I see no reason it shouldn't), maybe this should be added to the core? Malcolm
  12. 1 point
    burt

    default shipping method change.

    It would be nice to allow shopowner to select which module should be selected? SQL: Use phpmyadmin or similar INSERT INTO configuration ( configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ( 'Set Default Shipping Method?', 'SHIPPING_DEFAULT_METHOD', '', 'This will make shipping selection default to the selected method.', '7', '5', 'tep_cfg_pull_down_shipping_methods(', now()); CODE: /includes/classes/shipping.php Find: return $cheapest; Add ABOVE it: if ( defined('SHIPPING_DEFAULT_METHOD') && (SHIPPING_DEFAULT_METHOD != '--none--') ) { $shipping_method = basename(SHIPPING_DEFAULT_METHOD, '.php') . '_' . basename(SHIPPING_DEFAULT_METHOD, '.php'); for ($i=0, $n=sizeof($rates); $i<$n; $i++) { if ($rates[$i]['id'] == $shipping_method) { $cheapest = $rates[$i]; } } } CODE: /admin/includes/functions/general.php Add: function tep_cfg_pull_down_shipping_methods($shipping_method, $key = '') { $name = (($key) ? 'configuration[' . $key . ']' : 'configuration_value'); $shipping_array = array(array('id' => TEXT_NONE, 'text' => TEXT_NONE)); $ship_array = explode(';', MODULE_SHIPPING_INSTALLED); foreach($ship_array as $k => $v) { $shipping_array[] = array('id' => $v, 'text' => $v); } return tep_draw_pull_down_menu($name, $shipping_array, $k); } Note: Untested, but should work. Feel free to optimise it to something more elegant. If it works, you should be able to go to admin > configuration > shipping/packaging and select which module should be used
  13. 1 point
    raiwa

    default shipping method change.

    If you wish to have one concrete module first you can use this code: $cheapest = false; for ($i=0, $n=sizeof($rates); $i<$n; $i++) { if ( $rates[$i]['id'] != 'flat_flat' ) { if ( is_array($cheapest) ) { if ($rates[$i]['cost'] < $cheapest['cost']) { $cheapest = $rates[$i]; } } else { $cheapest = $rates[$i]; } } } where 'flat_flat' is the flat rate shipping module, change it for the code of the shipping module you wish to show first.
  14. 1 point
    Tsimi

    default shipping method change.

    Try this and keep an eye on it if it doesn't cause any other issues. This following code change should make the most expensive shipping selected by default. Open catalog/includes/classes/shipping.php FIND: (around line 108) if ($rates[$i]['cost'] < $cheapest['cost']) { REPLACE WITH: //if ($rates[$i]['cost'] < $cheapest['cost']) { if ($rates[$i]['cost'] > $cheapest['cost']) {
×