Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

annuity

Members
  • Posts

    40
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

annuity's Achievements

  1. We signed up for beta testing and to demo the new site when v4 was first announced but have heard nothing since. We have supported Oscommerce since 2007 and have held on believing Harold and now the new owners would come through on their promises but it's getting to the point now when we are going to have to reluctantly look elsewhere.
  2. Also when in mobile mode a design i like is to have a slide in menu from the left hand side, which contains the main categories and important links etc. The menu slides in by the user clicking a small icon on the left hand side, which also remains in place as the user scrolls down so is always available. This hugely benefits the user experience when in mobile mode as there isn't the space the have categories in the header menu. https://www.w3schools.com/howto/howto_js_sidenav.asp
  3. Hi, I wanted to ask/request if the standard template could come with what they call "Sticky Header". Whereby when the user scrolls down in any mode desktop/tablet/mobile the header sticks to the top of the page. https://www.w3schools.com/howto/howto_js_sticky_header.asp
  4. Hi, I just wanted to ask regarding Paypal specifically. It looks like Paypal have replaced the old hosted/web payments pro with a new solution called Paypal checkout. Will one of the payment modules supplied with v4 be Paypal checkout please?
  5. @@Denzel @@Jack_mcs Hi Jack, Having trouble installing this on my BS Edge site php 7. Got 500 error at googlesitemap/index.php with default settings. So i went through the index.php file and sitemap.class.php and made all the usual changes. Hard coded paths and changed class construct, changed mysql to mysqli and commented out require for filenames but nothing seems to work. I've tried disabling seo urls in case that was causing an issue but didn't change anything. Unfortunately because it's giving 500 error i've got nothing to work off in diagnostics or error log. Can you offer any advice as to what might be causing the issue? Denzel it seems you got this working on edge. Can you elaborate on any other changes you had to make than the ones i've mentioned above to get it working?
  6. Also is it possible to set the elements within the container to equal height as well? For example in grid product listing the price and buy now buttons are at different heights as you look along the row of products depending on the length of the product title. I would like each element(product image, title, price & buy now) to be level regardless of title length. I wonder if a work around would be to set the price & buy now element to a fixed point from the bottom of the container? So you would have different white space between the title and price and buy now elements but the price and buy now elements would all be level across the row of products.
  7. Great mod thanks very much for your hard work. I was wondering is there a way to add the same equal height functionality to the sub-categories section on a nested category page please?
  8. Ok i've managed to install a new class to handle manual redirects so that ones sorted but the other issue of www.domain.com/-c-.1.html not redirecting and showing a 404 page is still happening. I thought of simply adding -c-.1.html and categoryname-c-.1.html to my redirect array but it gives a redirect loop. I have noticed the 404 page when the url is www.domain.com/-c-.1.html is not the USU5 404 page so it seems for some reason when the url is www.domain.com/-c-.1.html it does not even enter into the system so to speak and the server rejects it before that. But if i add any letter into the url before the hyphen for example www.domain.com/Z-c-.1.html the redirect works. I thought this could be a configure.php or .htaccess issue but both look fine. Could it be something on my server? I have root access so can tweak anything i just need to know what. Anybody got any suggestions please?
  9. As I can't PM Robert and i first posted on here on 16th August without reply, if there are any coders out there reading this please reply on this thread or PM me with a quote as i need to get these 2 small issues fixed and move on with my life. Time is money. I need www.domainname.com/-c-1.html to redirect to www.domainname.com/category-name-c-1.html. This is for twitter links. I need manual 301 redirects to work as my categories can get deleted at anytime and i need to be able to manually redirect the old urls without clogging up the .htaccess file. Thank you
  10. Further to my previous post above. I have moved hosts and on a fresh install it is still displaying the same behaviour so please could anyone who has oscommerce 2.3 and the latest version of USU5 pro(r205) installed please take just 10 seconds to check the following for me: Go to your home page ie. www.yoursite.com Click on any category/product/manufacturer ie. www.yoursite.com/category-c-1.html In your browser manually change the URL to ie. www.yoursite.com/-c-1.html Press enter Do you get a 404 page not found or does the URL change back to www.yoursite.com/category-c-1.html? Also is anyone using the manual 301 redirects in includes/modules/ultimate_seo_urls5/includes/uri_redirects_array.php? Does it work for you? I can't get anything to 301 redirect even the examples given in the original file, which is: <?php /** * * ULTIMATE Seo Urls 5 PRO ( version 1.1 ) * * * @package USU5_PRO * @license http://www.opensource.org/licenses/gpl-2.0.php GNU Public License * @link http://www.fwrmedia.co.uk * @copyright Copyright 2008-2009 FWR Media * @copyright Portions Copyright 2005 ( rewrite uri concept ) Bobby Easland * @author Robert Fisher, FWR Media, http://www.fwrmedia.co.uk * @lastdev $Author:: Rob $: Author of last commit * @lastmod $Date:: 2010-12-21 22:45:02 +0000 (Tue, 21 Dec 2010) $: Date of last commit * @version $Rev:: 196 $: Revision of last commit * @Id $Id:: uri_redirects_array.php 196 2010-12-21 22:45:02Z Rob $: Full Details */ /** * Array of URIs to be 301 redirected * @package USU5_PRO * @example 'hardware-c-99' => array( 'index.php', 'cPath=1' ) redirects the specific uri hardware-c-99 to the current uri for cPath=1 */ /* $usu5_uri_redirects = array( 'hardware-c-99' => array( 'index.php', 'cPath=1' ), 'hardware-c-101' => array( 'index.php', 'cPath=1' ), 'de/hardware-c-101' => array( 'index.php', 'cPath=1' ) ); */ I have tried removing the /* and */ but no matter what i do i can't get anything to 301 redirect. Also should the old URL like hardware-c-99 in the example above not be hardware-c-99.html? I have tried it with and without anyway but as i say nothing will 301 redirect i just get a 404 page not found. Every other part of the contribution is working perfectly. The weird thing is i have other websites with older versions of USU 5 that redirect -c-1.html correctly and manual 301 redirects work perfectly so i don't understand why with this latest version i am havng these issues. I have root access to the server so can change anything if required. I need to get manual 301 redirects working because i don't have control over my categories so they could be changed at anytime and i need to be able to 301 redirect from the old categories to the new ones. Thank you.
  11. It's a weird one and i'm also concerned that www.mysite.com/?manufacturers_id=4 returns the correct manufacturers page and doesn't redirect to the correct seo url or cause a 404. I've uninstalled everything and re-installed USU5 to test and the manufacturers box works fine. So i don't understand why it's not working with your version. I also noticed with USU5 that www.mysite.com/?manufacturers_id=4 redirects to the correct seo url but the problem i have with that contribution is -c-1.html, -m-1.html and -p-1.html don't redirect and just 404 but your version redirects them correctly to category-name-c-1.html, manufacturer-name-m-1.html and product-name-p-1.html. I need a mix of both contributions it seems! Damn you computer gods!
  12. Hi Jack, Many thanks for getting back to me. As far as i'm aware everything is as standard with regards FILENAME_DEFAULT. I have checked filenames.php and FILENAME_DEFAULT is defined as define('FILENAME_DEFAULT', 'index.php'); . I have looked at "view source" on my site and the html for the manufacturers drop down is showing as the following: <div class="ui-widget infoBoxContainer"> <div class="ui-widget-header infoBoxHeading">Manufacturers</div> <div class="ui-widget-content infoBoxContents"><form id="manufacturers" action="http://www.amysite.com/index.php" method="get"><fieldset><select name="manufacturers_id" onchange="this.form.submit();" size="1" style="width: 100%"><option value="" selected="selected">Please Select</option><option value="6">Canon</option><option value="4">Fox</option><option value="8">GT Interactive</option><option value="9">Hewlett Packard</option><option value="5">Logitech</option><option value="1">Matrox</option><option value="2">Microsoft</option><option value="10">Samsung</option><option value="7">Sierra</option><option value="3">Warner</option></select></fieldset></form></div></div> The URL in the "action" part shows action="http://www.mysite.com/index.php" so it seems the index.php bit isn't being passed through when you actually click on a link. Is that the problem? I didn't have a problem with this drop down when USU5 was installed so i will have a look at the code for it and see if i can spot something that might help. Do we need to change this bit select name="manufacturers_id" to something like select name="index.php/manufacturers_id" ? Also do you have a solution for the "please select" link to not be a link or to direct to the homepage when clicked?
  13. If it helps to solve the issue Jack i am getting a new error as follows: Undefined variable: actaulID in includes/classes/seo.class.php on line 2641 Undefined index: path in includes/classes/seo.class.php on line 2593
  14. Sorry another thing i just noticed with the manufacturers drop down is when i click "please select" the url goes to www.mysite.com/?manufacturers_id= and a page is displayed. Is there a way to make the "please select" link not a link at all or at least make it redirect to the homepage or something?
  15. Hi Jack, As i say i've installed Version 2.2d-11 and everything is working great. The issue i was having with USU5 pro not redirecting -c-26.html is fixed with your version and i installed the validator which has fixed manufacturer links not redirecting. The only issue i have is with the manufacturers drop down menu. I have searched the thread and seen it mentioned before but didn't see a solution. My site is oscommerce 2.31 and has a few contributions installed now but nothing that has touched the manufacturers info box. When i choose a manufacturer from the drop down it takes me to the page ok but the URL is structured like this www.mysite.com/?manufacturers_id=4. As i say the code for the manufactuers drop down is standard and is as follows: <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2010 osCommerce Released under the GNU General Public License */ class bm_manufacturers { var $code = 'bm_manufacturers'; var $group = 'boxes'; var $title; var $description; var $sort_order; var $enabled = false; function bm_manufacturers() { $this->title = MODULE_BOXES_MANUFACTURERS_TITLE; $this->description = MODULE_BOXES_MANUFACTURERS_DESCRIPTION; if ( defined('MODULE_BOXES_MANUFACTURERS_STATUS') ) { $this->sort_order = MODULE_BOXES_MANUFACTURERS_SORT_ORDER; $this->enabled = (MODULE_BOXES_MANUFACTURERS_STATUS == 'True'); $this->group = ((MODULE_BOXES_MANUFACTURERS_CONTENT_PLACEMENT == 'Left Column') ? 'boxes_column_left' : 'boxes_column_right'); } } function getData() { global $_GET, $oscTemplate; $data = ''; $manufacturers_query = tep_db_query("select manufacturers_id, manufacturers_name from " . TABLE_MANUFACTURERS . " order by manufacturers_name"); if ($number_of_rows = tep_db_num_rows($manufacturers_query)) { if ($number_of_rows <= MAX_DISPLAY_MANUFACTURERS_IN_A_LIST) { // Display a list $manufacturers_list = '<ul style="list-style: none; margin: 0; padding: 0;">'; while ($manufacturers = tep_db_fetch_array($manufacturers_query)) { $manufacturers_name = ((strlen($manufacturers['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN) ? substr($manufacturers['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturers['manufacturers_name']); if (isset($_GET['manufacturers_id']) && ($_GET['manufacturers_id'] == $manufacturers['manufacturers_id'])) $manufacturers_name = '<strong>' . $manufacturers_name .'</strong>'; $manufacturers_list .= '<li><a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers['manufacturers_id']) . '">' . $manufacturers_name . '</a></li>'; } $manufacturers_list .= '</ul>'; $content = $manufacturers_list; } else { // Display a drop-down $manufacturers_array = array(); if (MAX_MANUFACTURERS_LIST < 2) { $manufacturers_array[] = array('id' => '', 'text' => PULL_DOWN_DEFAULT); } while ($manufacturers = tep_db_fetch_array($manufacturers_query)) { $manufacturers_name = ((strlen($manufacturers['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN) ? substr($manufacturers['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturers['manufacturers_name']); $manufacturers_array[] = array('id' => $manufacturers['manufacturers_id'], 'text' => $manufacturers_name); } $content = tep_draw_form('manufacturers', tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get') . tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, (isset($_GET['manufacturers_id']) ? $_GET['manufacturers_id'] : ''), 'onchange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '" style="width: 100%"') . tep_hide_session_id() . '</fieldset></form>'; } $data = '<div class="ui-widget infoBoxContainer">' . ' <div class="ui-widget-header infoBoxHeading">' . MODULE_BOXES_MANUFACTURERS_BOX_TITLE . '</div>' . ' <div class="ui-widget-content infoBoxContents">' . $content . '</div>' . '</div>'; } return $data; } function execute() { global $SID, $oscTemplate; if ((USE_CACHE == 'true') && empty($SID)) { $output = tep_cache_manufacturers_box(); } else { $output = $this->getData(); } $oscTemplate->addBlock($output, $this->group); } function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_BOXES_MANUFACTURERS_STATUS'); } function install() { tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Manufacturers Module', 'MODULE_BOXES_MANUFACTURERS_STATUS', 'True', 'Do you want to add the module to your shop?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Content Placement', 'MODULE_BOXES_MANUFACTURERS_CONTENT_PLACEMENT', 'Left Column', 'Should the module be loaded in the left or right column?', '6', '1', 'tep_cfg_select_option(array(\'Left Column\', \'Right Column\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_BOXES_MANUFACTURERS_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_BOXES_MANUFACTURERS_STATUS', 'MODULE_BOXES_MANUFACTURERS_CONTENT_PLACEMENT', 'MODULE_BOXES_MANUFACTURERS_SORT_ORDER'); } } ?> Please could you help me fix it so it calls the links correctly as www.mysite.com/manufacturer-m-4.html ?
×
×
  • Create New...