Jump to content
Latest News: (loading..)

Peper

Members
  • Content count

    513
  • Joined

  • Last visited

About Peper

  • Birthday 11/28/1975

Profile Information

  • Real Name
    Pierre
  • Gender
    Male
  • Location
    South Africa
  • Website

Recent Profile Visitors

24,538 profile views
  1. Hello Dominic How to add to frozen version? I tried but was not showing up? Also this seems practical, however is to keep showing all the sub categories instead of leading a customer to one sub category point. If anyone done this on edge please let me know, thanks
  2. Peper

    Laravel Ecommerce System

    Demo sites always looks better - minimal functionality, clean and fast - the perfect cart or not? Lets add like a thousand products, couple categories, bit of customization, couple of enhancements. I doubt it will perform as the demo. As a novice in coding, oScommerce was the best option, the easiest, most free available and usable add ons. With the newest ce version for me is running really fast, if it is slow - change to a better service provider(my own experience). I always say its what's happening in the background that makes sense, users browsing your site does not see the master piece behind the curtains, the science to have a proper working site. You will always need custom coding and changes. There are a couple of very good talented developers here, keep up the excellent work! You are using oscommerce, a 24hr salesman for you, does not rest or gets tired, you have a business to take care of, dealing with customers is the most difficult part. The customer part is where most fail! So support oScommerce developers, they can build you a dream.
  3. Peper

    open_basedir restriction

    Thanks Phil This dir file checking is now working perfect without spewing out errors, i will change all files with this code to yours. When saving, the selected file options was not being saved However, i found ckeditor interfered here. Once ckeditor was disabled i was able to select files and save correctly.
  4. Peper

    open_basedir restriction

    Hello @MrPhil, thanks for insight I know the code was and is working fine - only my side and have no access to server config. i can pm you all the paths for open_basedir as i tried a couple of them I have added the ... to path and no error: if (!is_dir(DIR_FS_CATALOG . '..' . $file)) { However the saving part is not playing along.
  5. Hope anyone can help Posting this in general support, still same issue with all the files containing this code. In my configure file is define('DIR_FS_CATALOG', '/usr/www/users/alarmspggy/'); I tried using instead of DIR_FS_CATALOG to '..' The notice disappears but cannot selecting pages for this function - clears all names after pressing save Hosting support said i have to fix code, not allowed the following code gives error in admin side: open_basedir restriction in effect Warning: is_dir(): open_basedir restriction in effect. File(/usr/www/users/mspggy/..) is not within the allowed path(s): (/usr/www/wwws/users/mspggy:/usr/wwws/users/mspggy:/usr/www/users/mspggy:/usr/home/mspggy:/usr/local/rmagic:/usr/www/users/he/_system_:/usr/share/php:/usr/local/lib/php:/tmp:/usr/bin:/usr/local/bin:/usr/local/share/www:/usr/www/share/www:/usr/share/misc:/dev/urandom) in /usr/www/users/mspggy/includes/modules/content/header/cm_header_holiday.php on line 139 - if (!is_dir(DIR_FS_CATALOG . $file)) { This started happening after i changed to a new server with tighter security, any possible workaround for this? Also noticed there's a couple modules with this code $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.')); $files_array = array(); if ($dir = @dir(DIR_FS_CATALOG)) { while ($file = $dir->read()) { if (!is_dir(DIR_FS_CATALOG . $file)) { if (substr($file, strrpos($file, '.')) == $file_extension) { $files_array[] = $file; } } } sort($files_array); $dir->close(); }
  6. Hello Rainer @raiwa the following code gives error in admin side: open_basedir restriction in effect Warning: is_dir(): open_basedir restriction in effect. File(/usr/www/users/mspggy/..) is not within the allowed path(s): (/usr/www/wwws/users/mspggy:/usr/wwws/users/mspggy:/usr/www/users/mspggy:/usr/home/mspggy:/usr/local/rmagic:/usr/www/users/he/_system_:/usr/share/php:/usr/local/lib/php:/tmp:/usr/bin:/usr/local/bin:/usr/local/share/www:/usr/www/share/www:/usr/share/misc:/dev/urandom) in /usr/www/users/mspggy/includes/modules/content/header/cm_header_holiday.php on line 139 This started happening after i changed to a new server with tighter security, any possible workaround for this? Also noticed there a couple modules with this code $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.')); $files_array = array(); if ($dir = @dir(DIR_FS_CATALOG)) { while ($file = $dir->read()) { if (!is_dir(DIR_FS_CATALOG . $file)) { if (substr($file, strrpos($file, '.')) == $file_extension) { $files_array[] = $file; } } } sort($files_array); $dir->close(); }
  7. Peper

    Managing your Products

    I find it easier to allocate products to manufacturers grouped to suppliers. Also created for products a part number code that i can use for reference to the suppliers items price list instead of model only. For mass update csv by manufacturer then. For smaller updates as we purchase we also now and then update individual products. What will work for me is to create excel sheet that automatically matches the part numbers to the suppliers part number and hopefully just copy and paste pricing Updating attributes is more of a nightmare, one by one, although most of my attributes is an actual product. So here updating something that could have been easier - attributes you have downloads, sizes and so but how about selecting a product from the catalog? Pierre
  8. Peper

    Wholesale (SPPC lite)

    @raiwa Hello Rainer Small short coming on the pro version. In admin products edit or new, the dealer pricing will show as: for ($i=1; $i<=MODULE_STORE_WHOLESALE_GROUPS; $i++) { $products_ws_prices = 'products_ws_price_' . $i; resulting in I know what is going on here but what about other admin's? This makes no sense, can this rather be given a naming instead of 1, 2 or 3? So to make it easier for humans to differentiate, example instead of 1 to read Wholesale -Small, 2 = Wholesale medium, 3 = wholesale large Thanks
  9. Peper

    Limit or surcharge for shipping module

    I see however it returns false on this: e.g. Admin Postcode Surcharge: 1735, 1745, 1753 if (in_array($order->delivery['postcode'], MODULE_SHIPPING_DLYC_POST_ID)) { $shipping_rate = ($shipping_rate * MODULE_SHIPPING_DLYC_SURCHARGE) * $shipping_num_boxes; } tried: if (in_array($order->delivery['postcode'], array(MODULE_SHIPPING_DLYC_POST_ID)) { or is both the above going south?
  10. Peper

    Limit or surcharge for shipping module

    Don't forsure know if this is the best way but seems to work if (MODULE_SHIPPING_DLYC_MODE == 'weight') { $adm_array = explode(',', MODULE_SHIPPING_DLYC_POST_ID); $col = 0; for ( $i=0, $n=sizeof($adm_array); $i<$n; $i++ ) { $adm = $adm_array[$i]; if ((MODULE_SHIPPING_DLYC_SURCHARGE_ENABLE == true) and ($adm == $order->delivery['postcode'])) { $shipping_rate = ($shipping_rate * MODULE_SHIPPING_DLYC_SURCHARGE) * $shipping_num_boxes; } } } else { $shipping_rate = $shipping_rate * $shipping_num_boxes; } Any other suggestions please do post!
  11. Peper

    Limit or surcharge for shipping module

    progress i guess. if (MODULE_SHIPPING_DLYC_MODE == 'weight') { $adm_array = explode(',', MODULE_SHIPPING_POST_ID); $col = 0; for ( $i=0, $n=sizeof($adm_array); $i<$n; $i++ ) { $adm = $adm_array[$i]; if ((MODULE_SHIPPING_DLYC_SURCHARGE_ENABLE == True) && ($adm == $order->delivery['postcode'])) { $shipping_rate = ($shipping_rate * MODULE_SHIPPING_DLYC_SURCHARGE) * $shipping_num_boxes; } else { $shipping_rate = $shipping_rate * $shipping_num_boxes; now last bit: I added enable disable bit. just to get this working somehow: if ((MODULE_SHIPPING_DLYC_SURCHARGE_ENABLE == True) && ($adm == $order->delivery['postcode'])) {
  12. Busy to add a surcharge for one of my shipping modules. However i'm not getting this to work as imagined I have added the additional config for this shipping module tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Postal Surcharge', 'MODULE_SHIPPING_DLYC_POST_ID', '0001, 0002', 'Insert post code and comma seperate them', '6', '0', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Amount to Surcharge', 'MODULE_SHIPPING_DLYC_SURCHARGE', '1.3', 'Enter multiplication value eg. 1.2', '6', '0', now())"); if (MODULE_SHIPPING_DLYC_MODE == 'weight') { // $post_sur = MODULE_SHIPPING_DLYC_POST_ID ; $post_sur = str_replace (' ', '', MODULE_SHIPPING_DLYC_POST_ID); $post_sur = preg_split ('/,/', MODULE_SHIPPING_DLYC_POST_ID); if (post_sur == $order->delivery['postcode']) { $shipping_rate = ($shipping_rate * MODULE_SHIPPING_DLYC_SURCHARGE) * $shipping_num_boxes; } else { $shipping_rate = $shipping_rate * $shipping_num_boxes; So then if a customer postal code matches MODULE_SHIPPING_DLYC_TOWN_ID as defined in admin then adds a small surcharge (couriers charging a special trip) Any help on this please Thanks
  13. Peper

    Wholesale (SPPC lite)

    Hello Rainer Please if you can help with the following, for old SPPC i used in admin/customers.php to allocate specific shipping options and payment options to some individual customers. The SPPC lite only made this a global option per group This code was removed from /classes/shipping.php and similar to payment.php to update to lite version How to modify for old code to lite version? $customer_shipment_query = tep_db_query("select customers_wholesale, customers_payment_allowed, customers_shipment_allowed from customers....?? // BOF Separate Pricing Per Customer, next line original code $this->modules = explode(';', MODULE_SHIPPING_INSTALLED); global $customer_id; if (isset($_SESSION['sppc_customer_group_id']) && $_SESSION['sppc_customer_group_id'] != '0') { $customer_group_id = $_SESSION['sppc_customer_group_id']; } else { $customer_group_id = '0'; } $customer_shipment_query = tep_db_query("select IF(c.customers_shipment_allowed <> '', c.customers_shipment_allowed, cg.group_shipment_allowed) as shipment_allowed from " . TABLE_CUSTOMERS . " c, " . TABLE_CUSTOMERS_GROUPS . " cg where c.customers_id = '" . $customer_id . "' and cg.customers_group_id = '" . $customer_group_id . "'"); if ($customer_shipment = tep_db_fetch_array($customer_shipment_query) ) { if (tep_not_null($customer_shipment['shipment_allowed']) ) { $temp_shipment_array = explode(';', $customer_shipment['shipment_allowed']); $installed_modules = explode(';', MODULE_SHIPPING_INSTALLED); for ($n = 0; $n < sizeof($installed_modules) ; $n++) { // check to see if a shipping module is not de-installed if ( in_array($installed_modules[$n], $temp_shipment_array ) ) { $shipment_array[] = $installed_modules[$n]; } } // end for loop $this->modules = $shipment_array; } else { $this->modules = explode(';', MODULE_SHIPPING_INSTALLED); } } else { // default $this->modules = explode(';', MODULE_SHIPPING_INSTALLED); } // EOF Separate Pricing Per Customer @raiwa
  14. Peper

    Mail Manager

    When adding SMTP i'm not getting results as planned. My store is using html email addon and have to stick to sendmail Try this SMTP addon
  15. Peper

    Mail Manager

    Hello @fourmat This was a while back and is working fine for me at least (Admin-E-Mail Transport Method = sendmail) Will have a look this weekend again on the SMTP side(my preferred way) if (EMAIL_TRANSPORT == 'smtp') { return mail($to_addr, $subject, $this->output, 'From: ' . $from . $this->lf . 'To: ' . $to . $this->lf . implode($this->lf, $this->headers) . $this->lf . implode($this->lf, $xtra_headers)); } else { return mail($to, $subject, $this->output, 'From: '.$from.$this->lf.implode($this->lf, $this->headers)); //return mail($to, $subject, $this->output, 'From: '.$from.$this->lf.implode($this->lf, $this->headers).$this->lf.implode($this->lf, $xtra_headers)); } }
×