Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

pdcelec

Members
  • Content count

    594
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by pdcelec


  1. ?? The Administration Panel has only "Paypal Express" checkout.

    As I understand it, Paypal Express is a wholly different animal than Paypal PRO.

     

     

    admin>>modules>>payment

    then click install module and it will be one of the choices


  2. USU5 is compatible with anything and everything just so long as it is correctly written.

     

    Header tags breaks when ANY path based uri is used .. it is buggy! Having said that, this bug in header tags can be avoided by choosing the rewrite method of USU5 which emulates chemos old seo urls.

     

    All products seo breaks because it uses file names with hyphen instead of underscore, if Jack_mcs read the osCommerce coding standards then he might write his contributions correctly. USU5 purposefully will not process this file as it is invalid input.

     

    This is simple to fix just correct the filename to what it should have been, all_products.php and not all-products.php ( if I'm remembering the correct file ).

     

    My reply (below) was to the above post

    ALSO correct the filename catalog/includes/languages/all_products.php and not catalog/includes/languages/all-products.php

     

     

    Doing that is not a correction. It would be lowering the SEO effect and is not recommended. Changing the code so it works with some other contribution is nonsense.

    There will always be conflicting opinions. My opinion, you are both CORRECT.


  3. USU5 is compatible with anything and everything just so long as it is correctly written.

     

    Header tags breaks when ANY path based uri is used .. it is buggy! Having said that, this bug in header tags can be avoided by choosing the rewrite method of USU5 which emulates chemos old seo urls.

     

    All products seo breaks because it uses file names with hyphen instead of underscore, if Jack_mcs read the osCommerce coding standards then he might write his contributions correctly. USU5 purposefully will not process this file as it is invalid input.

     

    This is simple to fix just correct the filename to what it should have been, all_products.php and not all-products.php ( if I'm remembering the correct file ).

    ALSO correct the filename catalog/includes/languages/all_products.php and not catalog/includes/languages/all-products.php


  4. ....

    KissMT is again modern code it dynamically creates all meta tags and also canonical elements for your site and it does it fully dynamically requiring no effort from you and installs in seconds. If you need to manually create your page titles etc however then this is not for you. ( although the functionality will be added ).

     

    See my sig if interested in those contributions.

    Although, they can be edited in /public_html/includes/languages/english/kissmt.php

     

    This is the method that I use at present until.....


  5. I'm new to osCommerce - have just spent several weeks building my store and am ready to go!

    Decided Paypal PRO was the way to go, so I set up my account at Paypal, got my SSL Cert installed - only to find out now that there is not a Paypal PRO add-on module available for V2.3.1.

     

    Can anyone help? I'm not adept at PHP, or I would just go into the V2.2 module and adapt, but that's not really an option for me.

     

    Paypal PRO is standard in 2.3.1


  6. This module looks very interesting indeed. I'd be really interested in the new version that you're planning at the end of Jan as per earlier post. From what I gather, the current version only allows the same text per tab repeated on each product. I'd really like to use this kind of mod for entering the products in admin so it's going to be dynamic for each different product. What I mean is I'd like to be able to have tabs for:

     

    Main description, ingredients, suitable for, how to use, manu info etc

     

    but containing different info for each product. I'm guessing it's going to mean altering the database to add the input fields in admin.

     

    I'll keep an eye our for the new version and happily do some testing as well!

     

    I like to give my customer a lot of product info but worry it makes the page too long and thus reduces keyword density. Are the tabs beneficial for SEO? As in, less info on each tab makes keyword density better? How would this work in conjunction with Header Tags Controller or KISS MT?

     

    Cheers and all the best...

    TG

     

    I have that exact setup. TMS (with custom tabs), KISSMT USU5 Pro

    http://www.electricalcity.co.uk/hrc-bussmann-aa0-aa010-10a-hrc-fuse-tia-p-32.html


  7. I upgraded osCommerce and as such, lost my SiteMonitor. I tried adding it back to the left column by adding the code in english.php, filesnames.php, and column_left.php. I am still not seeing the SiteMonitor options in the left menu bar. Any suggestions? Thanks so much!

    which version of osC?


  8. Hello,

     

    I installed the Contrib Discount Coupon Codes (http://addons.oscommerce.com/info/7644/v,23) (and by the way it is very cool!).

    By using the functionality I got an error in an SQL Query. The issue was, that the delivery date in the orders table is missing.

    In my investigations I found out, that additional stuff regarding shipping dates is included in the Contrib.

    My questions are now: Is the shipping date used in this contrib? Or is that code introduced with another contrib? If yes, with which? How can the shipping date be used (this is what I did not find out by now)?

     

    Thanks for your help.

     

    Cheers

     

    Kajoka

     

    I believe this is the ship date

    http://addons.oscommerce.com/info/7640/v,23


  9. Hi, I have installed this addon with OSC 2.3.1 and must say that it was simple to install. Obviously you all done a great job creating this. I do have one problem though. When I select any quantity for the master product apart from 0, the amount in my cart remains 1 (one) master product. The slave products seem to work fine, and will display whatever quantity I have selected. Any ideas what I have done wrong, or how to fix this problem?

    Thanks in advance

    Robert

     

    Try posting in the support thread for the add on

     

    http://forums.oscommerce.com/topic/67284-master-products-ms2/page__pid__1557939__st__2220#entry1557939


  10. Ahhh obviously not thick either.

    I did say ive d/l that 1 and theres no instructions with it.

    Just a text file that says "Just copy and replace /admin/easypopulate.php"

    and the easypopulate.php file.

     

    Dude, thanks for trying, nevermind im going to type each product in

    1 by 1.

     

    no clear help here so fack it. Spent hours last night adding

    just 1 section of products so i'll just do a section each night.

    should only take me 6 months. lol

     

    Thanks Again.

     

    This one

    Easy Populate 2.76i-MS2 (with attributes) surfalot 3 Aug 2009 :thumbsup:

     

    4th one down


  11. I have a client who wants the product listings to reflect the current quantities in the shopping cart. Their idea being that if someone has already added something to the cart, but wants to change it, they can change it right inside the product listing of a particular category instead of needing to go to the shopping cart.

     

    Is there a contrib or add-on that allows this?

     

    Thanks for any comments or help!

    http://addons.oscommerce.com/info/7430

     

    or

    in includes/modules/product_listing.php

     

    REPLACE

    case 'PRODUCT_LIST_BUY_NOW':

    $lc_align = 'center';

    $lc_text = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']) . '">' . tep_image_button('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</a> ';

    break;

    }

     

    WITH

    case 'PRODUCT_LIST_BUY_NOW':

    $lc_align = 'center';

    $lc_text = tep_draw_form('buy_now' . $listing['products_id'], tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id']), 'POST') . tep_draw_input_field('list_quantity', '1', 'size=2') . tep_image_submit('button_buy_now.gif', IMAGE_BUTTON_BUY_NOW) . '</form> ';

    break;

    }


  12. There are also about 10,000 ways to screw up an install. It just takes one tiny little thing. If you did post your site (change those permissions first), there are about a dozen folks on the forum that could diagnose the problem in a heartbeat.

     

    Also, another solution is to start over, and if your Webhost has Simple Scripts or Fantastico on your Website Control panel, use one of those to install OSCommerce. If they don't have Simple Scripts or Fantastico, I would seriously consider using another Webhost like GoDaddy or Bluehost.

     

    Softaculous is another one as used by my host


  13. i have set up table rate as being royal mail 1st class

     

    i put in this as the code for prices

     

    100:1.17,250:1.51,500:1.95,750:2.6,1000:2.84,1250:4.50,1500:5.20,1750:5.90,2000:6.60,4000:8.22,6000:11.02

     

    only thing is a 4000 lbs package is coming up as 25.74

     

    what am i doing wrong?

    Those prices eg 100:1.17 is 100grams for £1.17.

     

    HTH


  14. Was able to install and run it...however, when i click on the Easy Populate choice in the Catalog (admin area), the EP is displayed over the entire catalog menue...wierd..

    this is a screenshot of it:

    screenshot.gif

     

    You need to replace the top formatting of the file with template_top

     

    Compare easy populate with a standard file. I have running fine in 2.3.1

     

    Here is the top bit. Do the same at the bottom of file

     

    // S T A R T

    // PAGE DELIVERY

    //*******************************

    //*******************************

    ?>

    <!--<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

    <html <?//php echo HTML_PARAMS; ?>>

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=<?//php echo CHARSET; ?>">

    <title><?//php echo TITLE; ?></title>

    <link rel="stylesheet" type="text/css" href="includes/stylesheet.css">-->

    <?php require(DIR_WS_INCLUDES . 'template_top.php'); ?>

    <script type="text/javascript"><!--

    function switchForm( field ) {

    var d = document;


  15. I put Security Site Pro, Site Monitor and IP Trap on my website, now it just times out when I try to do ftp downloads and uploads. What can I do to resolve this so I can do ftps?

    Have you checked to see if your own IP is being blocked by IP trap?


  16. I am not very good at this and I don't know how to tell which line is line 56. Can someone please tell me the lines before where the type below needs to be inserted.

     

    // include the IP Trap

    require(DIR_WS_INCLUDES . 'secret.php');

     

    Thank you,

    Hope

    Get an editor such as notepad++ to alter the files (free)


  17. A template has been made available for creating addons for USU 5 pro

     

    I do not know enough to create it

    <?php
    /**
    *
    * ULTIMATE Seo Urls 5
    *
    * 
    * @package Ultimate Seo Urls 5
    * @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 Bobby Easland
    * @author Robert Fisher, FWR Media, http://www.fwrmedia.co.uk 
    * @lastdev $Author:: Rob                                              $:  Author of last commit
    * @lastmod $Date:: 2010-12-01 14:03:08 +0000 (Wed, 01 Dec 2010)       $:  Date of last commit
    * @version $Rev:: 188                                                 $:  Revision of last commit
    * @Id $Id:: Usu_Template.php 188 2010-12-01 14:03:08Z Rob             $:  Full Details   
    */
    
    class Usu_XXX extends aDataMap {
    
     const MARKER = '-xxx-';  // Could for example be -c- or -l- etc.
     const DEPENDENCY = 'xxx_id'; // _GET key like e.g. cPath or lPath etc.
     const FILENAME = 'xxx.php'; // The filename define of the file where this code will be actioned, this MUST NOT be a define
     public $dependency = self::DEPENDENCY;
     public $dependency_tags = array( self::MARKER => self::FILENAME ); // key value pair of tag (like e.g. -c-) => filename ( e.g. FILENAME_DEFAULT )
     private $page_relations = array( self::FILENAME => 1 ); // Page relation for this module ( e.g. FILENAME_DEFAULT or FILENAME_LINKS )
     private $markers = array( self::MARKER => self::DEPENDENCY ); // Markers as key value pair like -c- => cPath or perhaps -l- => lPath
     private $base_query; // Template query with placeholders ( :placeholder ) waiting for real values
     private $query; // The final query which will be $base_query but with the placeholders replaced with real values
     private $xxx_name; // property populated in the acquire() method, there may be multiples of these, rename in line with the query results
     private $dependency_value; // Dependency value, so if the dependency was cPath and cPath = 27 then this value would be 27
     private $installed = false; // Unless it is a core module $installed should only be true if the contribution is installed ( e.g. articles or links manager etc )
    
     public function __construct(){
       // The items with a colon : are placeholders which must match the $placeholders array in method acquire()
       $this->base_query = "SELECT xxx FROM " . TABLE_XXX . " WHERE xxx_id=':xxx_id' LIMIT 1";
       usu::$registry->merge( 'seo_pages', $this->page_relations );
       usu::$registry->merge( 'markers', $this->markers );
       usu::$registry->addPageDependency( array( self::FILENAME => self::DEPENDENCY ));
       /**
       * XXX For modules which are optional ( like information pages etc)
       * we would check for the existance of certain defines and if present set $this->installed to true
       * e.g. for the links contribution we would use ..
       * if ( defined( 'FILENAME_LINKS' ) && defined( 'TABLE_LINK_CATEGORIES_DESCRIPTION' ) ) {
       *   $this->installed = true;
       * }  
       */
       $this->installed = true; // xxx Hardcoded to true in this instance - see above comment.
     }
    
     protected function acquire( $base_path, $full_path ) {
       $this->dependency_value = $full_path; // Full path perhaps with underscores
       /**
       * About placeholders
       *  
       * The placeholders (items with a colon :) must match those in the query ( $this->base_query in the constructor )
       */
       $placeholders = array( ':xxx_id' );
       // Do the below values need to be typecast?
       $values = array( (int)$base_path ); // xxx These values will replace the placeholders above in $this->base_query
       $this->query = str_replace( $placeholders, $values, $this->base_query ); // Replace the placeholders with actual values
       $result = usu::query( $this->query ); // Action the query
       $this->query = null; // Unset the query for future usage
       $row = tep_db_fetch_array( $result ); // Return the array of data ( or false if there are no results )
       tep_db_free_result( $result ); // Housekeeping
       if ( false === $row ) {
         return false; // No results for the query so abort
       }
       /**
       *  Values obtained from the query, these properties will populate the registry via the method getProperties()
       * Method $this->linkText() should be used here to convert the text into seo url format e.g.
       * my great product .. may become .. my-great-product
       * You may have more than one of these like ..
       * $this->parentname, $this->catname dependent on how many results you retrieve from your query
       */
       $this->xxx_name = $this->linkText( $row['xxx_name'] );
    
       // If the registry item doesn't exist as a key then set a blank array
       if ( false === isset( usu::$registry->{self::DEPENDENCY} ) ) {
         usu::$registry->{self::DEPENDENCY} = array();
       }
       /**
       * Populate the registry with the properties we have set in this class
       */
       usu::$registry->attach( self::DEPENDENCY, $this->dependency_value, $this->getProperties() );
     } // End method
    
      protected function getProperties() {
        $properties = get_object_vars( $this ); // $properties becomes an array of all properties within this class
        unset( $properties['page_relations'] ); // Get rid of this key as it is not needed in the registry
        return $properties;  
      } // End method
    
      private function get_full_path( $path ) {
        // Only used for modules that require paths with parents like .. 2_6_35
        // See Usu_Categories.php for usage
        return $path;
      } // End method
    
      private function get_parents() {
        // Only used for modules that require paths with parents like .. 2_6_35
        // See Usu_Categories.php for usage
      } // End method
    
      /**
      * Builds the seo url
      * 
      * @param string $page - file name of the calling page e.g. index.php
      * @param array $valuepair - key => value pair array containing dependency(e.g. cPath) => value (e.g. 2_24_52)
      * @param string $url - $url passed by reference created by the method linkCreate() 
      * @param array $added_qs - passed by reference containing key value pairs for _GET
      * @param string $parameters - Currently unused
      */
      public function buildLink( $page, $valuepair, &$url, &$added_qs, $parameters ) {
        if ( ( $valuepair[0] != self::DEPENDENCY ) || ( false === array_key_exists( 1, $valuepair ) )
                                                   || ( false === $this->installed )
                                                   || !tep_not_null( $valuepair[1] ) ) {
          return false; // Either this module is not installed or the value pair does not meet our requirements so abort
        }
        $base_path = $valuepair[1]; // well it might be a single top level item
        if ( false !== strpos( $valuepair[1], '_' ) ) { // It is a path with parents? ( has underscores )
          $base_path = ltrim( strrchr( $valuepair[1], '_' ), '_' ); // Grab the base path which is the number at the end of a path with parents ( e.g. 2_23_37_52 = 52 ) 
        }
        // Sanity check - if the $base_path is not numeric then we dump it
        if ( false === is_numeric( $base_path ) ) {
          trigger_error( __CLASS__ . ' Incorrect ' . self::DEPENDENCY . ' presented: ' . $valuepair[1], E_USER_WARNING );
          return false;
        }
        // Get a full path with underscores from the database
        $full_path = $this->get_full_path( $base_path );
        // If this item is not already in the registry we use the acquire() method to query for the data
        if ( !isset( usu::$registry->vars[self::DEPENDENCY][$full_path] ) ) {
          if ( false === $this->acquire( $base_path, $full_path ) ) {
            return false; // Looks like an invalid request so dump it
          }
        } else {
          usu::$performance['queries_saved']++; // Already in the registry so we saved one query
        }
        /**
        * About $reg_item
        * 
        * We grab the array of data from the registry and place it in $reg_item for convenience
        * The data stored in the registry was set in the method acquire as properties of this class
        * These are then set in the registry using the method getProperties()
        * the specific array keys like $reg_item['catname'] will be specific and differ in each module 
        */
        $reg_item = array();
        $reg_item = usu::$registry->vars[$valuepair[0]][$full_path];
    
        /**
        * Set the link text from reg_item
        * e.g. $link_text = $reg_item['parentname'] . '-' . $reg_item['catname'];
        */
        $link_text = $reg_item['xxx_name']; // the property added in the acquire function this would have been set in the acquire method like $this->xxx_name
    
    
        switch( true ){
          case $page == self::FILENAME:
            $url = $this->linkCreate( self::FILENAME, $link_text, self::MARKER, $full_path );
            break;
          default:
            // Add leftovers to the querystring _GET
            $added_qs[filter_var( $valuepair[0], FILTER_SANITIZE_STRING )] = usu::cleanse( $valuepair[1] );
            break;
        } # end switch
      }
    }


  18. A couple more notice errors

     

    Date / Time: 28-12-2010 23:27:22

    Error Type: [E_NOTICE] Undefined variable: cart

    On line 36

    File includes/modules/boxes/bm_suggested_accessories.php

    -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

     

    Date / Time: 28-12-2010 23:27:22

    Error Type: [E_NOTICE] Undefined variable: data

    On line 79

    File includes/modules/boxes/bm_suggested_accessories.php

    -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+


  19. I have set up a test shop.

     

    When the suggested accessories box is activated it causes a display problem in IE9

     

    http://www dot electricalcity.co.uk/sample1/

     

    I have tried Ultimate URLs (USU 5 Pro) and they work fine on the suggested accessories box, but not on the product listing page

     

    edit:: the SEO urls work fine if the master an slave products are placed in a category.

×