Products     Magento Extension     PCI-Shopping-Carts     Templates       CRELoaded     WordPress Modules     osCommerce Modules       osCommerce Addons       osCommerce Features       osCommerce Management       Payment Modules     CRELoaded Modules       CRE Loaded Addons       CRE Loaded Features       CRE Loaded Management       Payment Modules       CRELoaded Services
Free Stuff
Customization
Templates
Compare Products
You have no items to compare.
Affiliate Info
Affiliate Program FAQ
Affiliate Log In
Recent Orders
Hot Keywords: Order Notification, Order Search, Coupon, Flash Board, Compare, Floating Message, Tracking, Moneris, RSS, Visitor Filter
Contributions
The following osCommerce contributions are free Opensource code originated from official osCommerce website and provided for your reference only, you may download the original contribution file(s) and install it on your own; or you may request a Paid Installation Service from Agents Of Power; Agents Of Power does the "AS IS" installation on your website, we do not guarantee it will work properly on your website. Extra Paid service is available for repairing the problem from the original contribution or from your website.
Filter: Search:
Displaying 163 to 171 (of 1445 contributions) Result Pages: [<< Prev]  ... 11  12  13  14  15  16  17  18  19  20 ...  [Next >>] 
181. Store Statistics Request Installation with Paid service
There are 3 Bugs inside

Bug 1. all totals will be display as net
without taxes
without shipping charges
without coupons

Bug 2. Sales by month will add all month (e.g. octoer 2008 plus oktober 2009)
Bug 3. customer by month with the same bug



this is a emty file
Previous (first) version only shows sales of one particular order state. This version allows up to 5 order states to be included.

Also made some small fixes (sales of last week was shown first).
I wanted to have a clear overview on the sales of my store. Although the default osc2.2rc2a comes with some admin pages and there are some contributions as well that address the questions that i had, but i wasn't really pleased with the way the figures are presented. It's basically a bunch of numbers that require carefull analysis, while i'm mainly interrested in the performance on the entire shop regarding sales compared to the last couple of days, weeks, months and years. Another thing i was curious about was the average age of my customers and how many orders are placed per age and how large the sales were (per age). I've created the first two graphs and put them together with some admin and language support in this contribution.

Hopefully you all enjoy this contribution and continue the work!

Keep in mind to first read the FAQ below before posting questions!!!
   Posted on: 01/13/2009     See contribution details

182. Search Tag Cloud Request Installation with Paid service
There is a bug when a keyword is searched 255 times. The field freq don't have more capacity and all the keywords have the same size.

I have only upload the install.txt modified.
Search Tag Cloud v2.4 by darkamex (FullPackage)

- replaced string <a href="advanced_search_results.php" ... with <a href=" . tep_href_link(FILENAME_ADVANCED_SEARCH_RESULTS...

- added oscommerce filtering function for database queries: tep_db_input($_GET['keywords'])

Sponsored by

http://www.openbazar.it
   Posted on: 02/01/2009     See contribution details

183. Ultimate SEO URLs Request Installation with Paid service
- Added option to handle urls for All Products SEO
- Added a limit to the category name code to provide a small speed increase
- Fixed coding mistake in getting category name
- Changed pattern matching code to cover more possibilities and to handle hyphens
- Changed pattern matching code to use preg_replace instead of ereg_replace
- Changed code in admin/functions/general.php to clear cache when the uninstall options is used

This is a full package.

The support thread is at
http://forums.oscommerce.com/index.php?showtopic=154166
- Added an uninstall option to allow resetting the Ultimate SEO database entries to default
- Added code to handle Articles Manager authors
- Changed the add cPath to end option to add categories parent to products
- Changed add categories parent option so all categories are added
- Changed filter method so categories with spaces will display correctly
- Fixed mistake in code for information pages that prevented the name of the page from being seen.


The support thread is at
http://forums.oscommerce.com/index.php?showtopic=154166
English__________
Little code added in application_bottom.php to validate if $seo_urls is an object.

When SEO URL was to False in admin, stepped a Warning.

Español_________
Pequeño código añadido en application_bottom.php para validar si $seo_urls es un object.

Cuando SEO URL estaba a False en el admin, saltaba un Warning.
- Fixed automatic install code so it handles the updates correctly
- Added an option to use the title from Header Tags for the url
- Added fixed to allow code to work with all languages
- Fixed long standing problem with code for Links Manager cache

The support thread is at
http://forums.oscommerce.com/index.php?showtopic=154166
- Fixed code that would cause the deletion of configuration settings for other contributions.
- Fixed short words code.
- Fixed include category name code.
- Fixed changed url code (if name of the url doesn't match the actual name, it redirects).

This is a full package.

The support thread is at
http://forums.oscommerce.com/index.php?showtopic=154166
English_____________

-Added 2 functions in includes/classes/seo.class.php to disconnect MySQL

-Added a function's call in includes/application_bottom.php to disconnect MySQL's session of SEO_DataBase

We had problems with a shop with a lot of customers online without this functions

Español_____________

-Añadidas 2 funciones en includes/classes/seo.class.php para desconectar MySQL

-Añadida una llamada a una función en includes/application_bottom.php para desconectar la sesión MySQL creada por SEO_DataBase

Tuvimos problemas en una tienda con bastantes clientes online sin estas funciones
Just installed 2.1e ORIGINAL updated, remijedi update.

and everything worked. recommended to use this as the 2.7 is buggy with buy it now buttons and currency.

this is just a FYI for people who cant use the FWR media due to server restrictions.

no file attached

Instruction for Autoinstaller to set "safe URLs" to false was added. As I see people forget to do it.

The message "you should create an empty .htaccess file" was added to be shown if the .htaccess file doesn't exist.


If you start a new store on PHP5 I suggest you to use
ULTIMATE Seo Urls 5 (http://addons.oscommerce.com/info/6768)

because the Chemo's seo.class.php become old and not supported

The Auto Installer script requires PHP5 !

Few lines of code were added to list all the files that should have 777 permissions.

If you start a new store on PHP5 I suggest you to use
ULTIMATE Seo Urls 5 (http://addons.oscommerce.com/info/6768)

because the Chemo's seo.class.php become old and not supported

The Auto Installer script requires PHP5 !

The "insert into configuration" query was corrected for MySql 5.1.30

If you start a new store on php5 I suggest you to use
ULTIMATE Seo Urls 5 (http://addons.oscommerce.com/info/6768)

because the Chemo's seo.class.php become old and not supported


The extend.php file was modified to rely on catalog/includes/configure.php settings.

Download this package instead of the previous

The title of the autoinstaller script was corrected.

Download this package instead of previous.

This package contains:

Ultimate SEO URLs v2.7 - FullPackage by faaliyet (23 Mar 2009)

+ seo.class.php was modified.
The function do_redirect was changed to not pass GET parameters through htmlspecialchars()

+ few osCommerse forms were modified.
The "Product List Filter" and "Currencies" select were changed to not send cPath, products_id and manufacturers_id GET variables when Seo Urls is enabled.

+ uninstallation query was corrected.
The "delete from configuration ... " query was updated to delete only the SEO URLs contribution configuration entries.

+ after installation instructions were updated.
Solution by KathyK for the "Extra pages-info box w-admin" contribution was added. (posted on: Jan 25 2009, 04:24 AM on the "Ultimate SEO URLs v2.1 - by Chemo" forum)

+ Auto Installer 2.12 script


The Auto Installer script requires PHP5 !

This package contains:

Ultimate SEO URLs v2.7 - FullPackage by faaliyet (23 Mar 2009)

+ seo.class.php was modified.
The function do_redirect was changed to not pass GET parameters through htmlspecialchars()

+ few osCommerse forms were modified.
The "Product List Filter" and "Currencies" select were changed to not send cPath, products_id and manufacturers_id GET variables when Seo Urls is enabled.

+ Auto Installer 2.7 script


The Auto Installer script requires PHP5 !

The fix by miroI (29 Apr 2009) included
The purpose of 2.5 version is to fix Pektsekye's issue with the uninstall.xml write permissions.

This fix is very important because next install steps will ask you to set write permissions to several existing files and directories. After you set the write permissions and click retry if uninstall.xml is not writable autoinstaller will add the code again to the already changed existing files which makes syntax errors.

Added write permission warning if backup directory is not writable to prevent possible unwanted overwrite of your files. In the 2.4 version of this uninstaller if backup directory is not writable your files are not saved as backup as Pektsekye says in his readme file.

This package contains:

Ultimate SEO URLs v2.7 - FullPackage by faaliyet (23 Mar 2009)

+ seo.class.php was modified.
The function do_redirect was changed to not pass GET parameters through htmlspecialchars()

+ few osCommerse forms were modified.
The "Product List Filter" and "Currencies" select were changed to not send cPath, products_id and manufacturers_id GET variables when Seo Urls is enabled.

+ Auto Installer 2.4 script


The Auto Installer script requires PHP5 !
This package contains:

Ultimate SEO URLs v2.7 - FullPackage by faaliyet (23 Mar 2009)

+ BUY NOW Button Fix by amchstudios (1 Apr 2009)

+ Auto Installer 2.1 script


The Auto Installer script automatically install the contribution: copy files, edit files, alter database tables.
It saves a backup before any action.

The script automatically install the contribution: copy files, edit files, alter database tables.
It saves a backup before any action.

The aim of the script is to speed up the contribution installation.
And to make possible to uninstall it.

You will need to do manually only what the script cannot.

It was tested on hostgator.com host (PHP:5.2.4 MySQL 5.0.67) and osCommerce Online Merchant v2.2 RC2a
Here is a quick fix because in the latest versions the BUY NOW Button adds a amp character to the url and takes a user to an empty shopping cart. If you remove it it works fine.

I have tested the latest version by faaliyet added 23 Mar 2009 and everything else is working so with this addition package is safe!

ENJOY!

-Sorry, I just forget to add .htaccess file changes. Please use this package.

More information about Ultimate SEO URLs v2.7 look at my previous update.

Seyhun Cavus (faaliyet)
Ultimate SEO URLs v2.7 - FullPackage

-It's good idea to add manufacturer name to urls of products(update by shadowrider)
-A file of this version added for users of the contribution SID Killer.
-SEO Urls for "article authors"(by mazoerkam) added for the user of the contribution Article Manager.
-The update of avanser "UTF problem fixing" added.
-Canonical Urls are important for SEO. But Canonical URLs not added because:

"
I thought to add Canonical URLs to this contribution.
Firstly thought webshoptimizer's solution. But it adds some canonical urls and removes osCsid=xxxxxxxxxxxxxxxxxxxxxxxx from somepages, nothing else.
It's good to remove osCsid=xxxxxxxxxxxxxxxxxxxxxxxx from url but the contribution sid killer(http://www.oscommerce.com/community/contributions,952) is better for this job.
On the other side Jack's new version of Header Tags SEO (V 3.1.2) has a support for Canonical Urls.
And I can say it's better from webshoptimizer's solution (http://www.oscommerce.com/community/contributions,6578).

For Canonical URLs and more support on SEO for your shop:
Go to Header Tags SEO (http://www.oscommerce.com/community/contributions,5851) and install.

*Thanks to Jack for his great contributions and solutions.

More information about Canonical URLs :
http://www.mattcutts.com/blog/canonical-link-tag-video/
http://www.mattcutts.com/blog/canonical-link-tag/
"

This is a Full Package.
Seyhun Cavus (faaliyet)
Default package didn't work properly for me so I spent long day to find out how it works. This mod only adds manufacturer to product url, so if you had default:
yourshop.com/productname-p-1.html
you can have:
yourshop.com/manufacturer-productname-p-1.html

Based on this mod you can easily replace manufacturer to category name.

Feel free to change this code.

Enjoy!
The problem with ultimate SEO URL is that pages with different language can have the same URL :

http://www.yoursite.com/matrix-p-29.html (english version)

http://www.yoursite.com/matrix-p-29.html (french version)

which is confusing for a search engine and your site will not be indexed properly...

Basically this mod will add ?language=XX or &language=XX to all URL that have been modified with Ultimate SEO URL.

Now URL will become :


http://www.yoursite.com/matrix-p-29.html?language=en (english version)

http://www.yoursite.com/matrix-p-29.html?language=fr (french version)

Included file explains the modifications in seo.class.php
if you use utf-8 encodind, then you must replace in function function strip($string){}
strtolower($string) TO mb_convert_case($string, MB_CASE_LOWER, "utf-8") in file sea.class.php

no file, only fix
from the last SOE contribution
add article authors

http://namesite/articleauthors-au-1.html

only change 2 file..
SEO class and .htaccess
Ultimate SEO URLs v2.6 (FullPackage) - faaliyet

+ seo.class.php typo/bug fix - php4hosting

To download only 1 package, rather than trying to fix this error beast.


People who developed and contributed to this add "Ultimate SEO URLs" Thank you, helped me ... BRAZILLLLLLLLL 1st Place hehe ...

I changed the function parse_parameters() in seo.class.php in order to encode the url in the right format with urlencode().

Now if you use japanese or chinese letters, it will appear correctly in the link instead of weird signs.
Same for all the éàè ... letters.

recommended for anyone using UTF-8 in their catalog.
This updates contains the following changes:

- Changed code to prevent the mass deletion of any group in the database that ends in SEO. This is breaking other contribution.

- Added code from an earlier version so that it works with Links Manager

This is a full package.

The support thread is at
http://forums.oscommerce.com/index.php?showtopic=154166
It's a shame, but this great contribution is being ruined imo.

I attach this file not to add to the carnage but in the hope that it'll get people back to using Chemos ORIGINAL great script. To my knowledge this was the last version wholely worked on by Chemo.

Update: Mildy doctored seo.class.php otherwise standard.
Works with MySQL5 (Strict mode)
Works with PHP5
Added tep_output_string($_sid)

Update 7th Nov 2008:

The only issue remaining seemed to be where some servers reported PATH_INFO differently .. this is corrected in this package.

Errors removed when running in error_reporting E_ALL.

Included is the validation contribution which is optional not essential.
I took the file from an earlier entry and updated it with the new features; also added ?: to unused regular expression groups (for performances).
ATTENTION: NOT THOROUGHFULLY TESTED!
Im using Ultimate SEO v2.6 running on PHP5, MySql5.
And adding , [coma] on -pm-, im including package seo.class.php in here
I hope this is could be solved problem.

im sorry for my bad english..
There was a typo in the last package

includes/classes/seo.class.php

Line 624
'pages_id' => '-pm-'

Has a missing , should be
'pages_id' => '-pm-',
Version 2.6 News:

-Added Contribution "Google Duplicate Content Manager" of FWR_Media (great work by FWR_Media).
-Modified and added another seo.class.php file for "SID Killer" users.
*Contribution "SID Killer" is useful for Seo Urls. For more information follow the link
http://www.oscommerce.com/community/contributions,952
-Added "Extra pages-info box w/ admin" SUpport by faaliyet (and Bobby).
-Modified/corrected installation steps.
-Added: Upgrade Docs + History Logs.


-------------------------- What is "Google Duplicate Content Manager" ? --------------------------
**The previous packages have a problem about urls (at currencies, languages and pages by product listing)

For an example:
/my-great-product-c-47.html?page=2&sort=2a
/my-great-product-c-47.html?page=3&sort=3d
/my-great-product-c-47.html?language=en
/my-great-product-c-47.html?currency=GBP

This problem is fixed by FWR_Media's solution/contribution.
For more information about this contribution, look at the page: "http://www.oscommerce.com/community/contributions,6214"
--------------------------------------------------------------------------------------------------


------------------------------------ After Installation: ------------------------------------
To Notice: If you are contribution user of the

Header Tags SEO [or]
Header Tags Controller [or]
Meta information

You must apply steps of after_install.html page.
--------------------------------------------------------------------------------------------------

See the support thread for more details:
http://forums.oscommerce.com/index.php?showtopic=154166&st=3060
   Posted on: 09/28/2008     See contribution details

184. Product Attribute Pictures Request Installation with Paid service
From this version onwards you can ignore the requirements set out above. Some are obsolete, others are no longer required due to improvements in the code.

New support forum here:
http://www.product-attribute-pictures.com/index.php/component/option,com_ccboard/Itemid,30/forum,3/view,topiclist/

Changes made in this version:

- changed to dynamic width setting, so this will not break the layout of any site.

- prepopulated thumbnail settings after image uploading with default values to avoid empty fields causing errors.

- other small adjustments and fixes plus updated user guide.

FULL PACKAGE
- Made the maximum possible length of attribute names longer in the SQL file

- updated user guide

FULL PACKAGE
   Posted on: 10/06/2008     See contribution details

185. oscThumb Request Installation with Paid service
Combined versions 1.1a and 1.1.1. Complete package.
Added solution:
- fixed problem with changing the width of right column when is any review
Validated all image links
Updated manual

*** This is not complete package !
a quick fix in the file /home/ofs/public_html/phpThumb/phpthumb.class.php, lines 100 and 101.

change

var $config_nooffsitelink_enabled = false;
var $config_nooffsitelink_valid_domains = array();

into the below:

var $config_nooffsitelink_enabled = true;
var $config_nooffsitelink_valid_domains = array('yourdomain.com','www.yourdomain.com');

No attached.
-Added the possibility to use ZoomCrop
- added the possibility to add additional Parameters in the Admin Settings
Well working version of oscThumb, which uses latest phpThumb v1.7.9 (May 2008).

This is complette package.

Forum: http://forums.oscommerce.com/index.php?showtopic=281009
Well working version of oscThumb, which contains all the known solutions before publication of this version.

This is complette package.

Forum: http://forums.oscommerce.com/index.php?showtopic=281009
Added solution included on Forum osCommerce (http://forums.oscommerce.com/index.php?showtopic=281009) before publication of this version:

ERROR: invalid hash

Disabled checking of hash in phpThumb.config.php (parameter <font color="#3F3F7F";>$PHPTHUMB_CONFIG['high_security_enabled']</font> set to false).
no image watermark
Fixed path of a watermark in catalog/includes/classes/oscThumb.php - line 231 looks like this:
<font color="#3F3F7F";>$params .= "&fltr[]=wmi|/phpThumb/watermarks/".WATERMARK_IMAGE."</font>(...)
no separator (pixel_trans.gif)
Assigned original separator in catalog/includes/functions/html_output.php (the change is shown in Installation Instructions section).

Other small changes:
- renamed section 'Thumbnails' at 'oscThumb'
- established a new order ID field in the database

Updated manual

NOTE: This version is prepared for a fresh installation of osCommerce 2.2RC2a.
oscThumb contribution uses the open source project phpThumb to create thumbnails of your images.
Instead of sending the full size image to the browser and let the browser resize it, which can seriously slow down the loading time of your pages and look ugly, oscThumb will generate thumbnails and save them in a cache folder on your server, for future use.
It used Imagemagic (if available) or GD library to generate gif, jpg and png thumbnails.
In my knowledge, this is the only thumbnailing contribution that can really protect your images agains thieves!

Following features are included:

Server caching: thumbnails created are saved on the server, no need to re-generate them for each visitor. Automatic cache cleaning function included (size, age, nbr of files).
Watermarking: place a text or image watermark on your images to protect them from thieves.
Security against URL manipulations: filenames encryption make it impossible to find the original image and URL hash check make it impossible to manipulate URL to display images in original size.
Display options: add a frame around your images or buttonize them.
New size for product image on product_info.php page, selectable from admin.
Easy installation: few files to copy, 3 files to modify. Done.

Forum: http://forums.oscommerce.com/index.php?showtopic=281009
   Posted on: 10/24/2007     See contribution details

186. Animated flash sticky discount badge to specials and product page - indirimdekiler ve ürün sayfasına flash tabanlı indirim oranı etiketi Request Installation with Paid service
secure and non-scure items popup alert solved (on SSL pages)

full package
# installation instructions revised / kurulum yönergesi düzeltildi

-full package-
(en)This tiny conrtibution adds flash discount rate sticky badge to specials and product page

(tr)Bu küçük eklenti indirimdekiler ve ürün sayfas&#305;na flash tabanl&#305; indirim oran&#305; yap&#305;&#351;kan etiketi ekler
   Posted on: 09/17/2009     See contribution details

187. Simple Content Manager Request Installation with Paid service
A very simple content manger for V3.0A5, with full admin system.

Full support of languages, you can add a title, short introduction, and full description for each article you create.
   Posted on: 10/04/2009     See contribution details

188. Activate or inactivate category of catalog Request Installation with Paid service
Bug fixed for compatiblity with MySQL 4. If you are using a version of MySQL prior to version 5 you need this correction since in SQL queries version 4 processes NOT before IN rather than IN before NOT as in version 5 under which this contribution was tested. The solution is simply to put parenthesis around the IN operators wherever used in a query to make sure they are processed first regardless of the version of MySQL.

Complete corrected instructions attached. If you've already installed version 1.3 the only changes are that the SQL queries are changed from

and (not p2c.categories_id in (" . implode(',', $hiddencats) . "))

to

and (not (p2c.categories_id in (" . implode(',', $hiddencats) . ")))

in eleven files (one place each in ten files and twice in index.php).
I missed a function in catalog/includes/general.php that needs to be updated to correctly count products in a category and only its active sub-categories. Complete instructions are attached but only one has been added:


Find around line 383 in the function tep_count_products_in_category the line that sets $child_categories_query and add the "and status_categ = 1" to it so the line will now read:

$child_categories_query = tep_db_query("select categories_id from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$category_id . "' and status_categ = 1");
The basic contribution as orginally written worked fine to hide categories and their sub-categories in the catalog but it seemed to me like the idea would be hide the products contained in those categories as well. At this the original contribution failed miserably because there are many ways to list a product in osCommerce besides the category listing. Listing by manufacturer or by newest products or performing a search could find products in hidden categories and info boxes like specials, whats_new and reviews can also randomly display such products.

The updated instructions attached use a new configuration variable to determine whether or not products that exist only in hidden categories may be viewed or not. I've also updated the admin side to allow turning the category on or off while creating or editing a category as well as by clicking on the status buttons. The admin category information box will also show whether or not the category will be displayed in the catalog since a category might be set to display but won't because the parent category is hidden.

Instructions for updating a couple of contributions to work properly with this contribution are included at the bottom of the file.
If you are using "Main categories as thubnails on index"
http://addons.oscommerce.com/info/5119

There is a change to do,If you don't and disable a whole categorie "Main categories as thubnails on index" will still show the thumbnail of disabled categorie on your

main page.

To fix it go to catalog/includes/modules/main_cats.php

FIND:

$result = tep_db_query("SELECT * FROM " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd WHERE c.parent_id = '0' AND c.categories_id =

cd.categories_id AND cd.language_id = '" . (int)$languages_id . "' ORDER BY sort_order ");

REMPLACE WITH

$result = tep_db_query("SELECT * FROM " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd WHERE c.parent_id = '0' AND c.status_categ = '1' AND

c.categories_id = cd.categories_id AND cd.language_id = '" . (int)$languages_id . "' ORDER BY sort_order ");

You are done, if you disable a whole categorie thubnail will also dispear from main page.
This contributions allows you to display or hide any category or subcategory.

The install is very easy and take a 1 or 2 min.
   Posted on: 01/02/2009     See contribution details

189. Individual Product Shipping Prices - v1.0 Request Installation with Paid service
Previous version did not download the complete product to xcel, only product that has indv price was set.

This is a complete updated instruction which will export all products including the one that does not have the shipping price set...
This package is for those who use easy populate w/ attribute contribution to import and export products into excel.

This have added two field, products_ship_price and products_ship_price_two.

What's not included:
method_id, and zip code...

Tested and work with OSC,R2a
Hi All,

This is same as file below, except this one will work if you have the ajax order editor installed http://addons.oscommerce.com/info/1435


Steve
Hi i manged to combine http://addons.oscommerce.com/info/5965 with Individual Shipping you can now have a surcharge on say states like Hawaii and Alaska.

This adds 2 new fields in admin, where you enter the states and the surcharge.

simply upload file to catalog/includes/modules/shipping folder thats it,

Remember to remove Individual Shipping module before you upload it then install it after upload
Failure to do above wll result in it not working for state surcharge

All credits to Authors of both contributions
When I was trying to use it I got some error such as other shipping options were not shown/worked and there was no option to integrate it with Onepage checkout addons (http://addons.oscommerce.com/info/6646).

I have changed two files in classes directory.

1. shipping.php
2. onepage_checkout.php (you have to add this file if you use onepage checkout contribution).

Other files are remaining same for both of the addons.

2 files uploaded.
Paypal Standard won't take the total to paypal portal.

open: catalogincludesmodulespaymentpaypal_standard.php

find:
function process_button() {

below you should see:
global $customer_id, $order, $sendto, $currency, $cart_PayPal_Standard_ID, $shipping;

if you only see: global $customer_id, $order, $sendto, $currency, $cart_PayPal_Standard_ID;

then replace $cart_PayPal_Standard_ID; with $cart_PayPal_Standard_ID, $shipping;

find:
'shipping' => $this->format_raw($order->info['shipping_cost']),

change to:
'shipping' => $this->format_raw($shiptotal),

find:
'amount' => $this->format_raw($order->info['total'] - $order->info['shipping_cost'] - $order->info['tax']),

replace it with:
'amount' => $this->format_raw($order->info['total'] - $shiptotal - $order->info['tax']),
I found that it is inconvient to use tep_not null becuase if you removed the amount and there still be a 0 left where it still notnull. so.

simple changed from:

if (tep_not_null($shiptotal) || tep_not_null($indvcount) || $shiptotal == '0'){

to:

if ($shiptotal != '0'){


so if $shiptotal is not equal to 0, meaning if there is an amount, it will show Shipping Total, then if shiptotal is 0, then it will show Free Shipping.

Previous version cannot apply to this case.

Please change if you have better idea....

included complete addon....

Through support thread, reported won't show all shipping option...

found the following block in catalog/includes/classes/shipping.php

// start indvship
//while (list(, $value) = each($this->modules)) {
// $class = substr($value, 0, strrpos($value, '.'));
// $include_modules[] = array('class' => $class, 'file' => $value);
//}
//}

if($indvcount==sizeof($products)){
if ((tep_get_configuration_key_value('MODULE_SHIPPING_INDVSHIP_STATUS')) && ((tep_not_null($shiptotal)) || $shiptotal == 0)) {
$include_modules[] = array('class'=> 'indvship', 'file' => 'indvship.php');
}
} else {
if(sizeof($products)>$indvcount){
while (list(, $value) = each($this->modules)) {
$class = substr($value, 0, strrpos($value, '.'));
if (($class !='freeshipper') && ($class != 'indvship')) { // comment to show all ship options
// if ($class !='freeshipper') { // uncomment to show all ship options
$include_modules[] = array('class' => $class, 'file' => $value);
}
}
}
}
}
// end indvship


where you can uncomment and comment the line:
if (($class !='freeshipper') && ($class != 'indvship')) { // comment to show all ship options
// if ($class !='freeshipper') { // uncomment to show all ship options

to show all shipping option, however, it doesn't work, so i remove that whole block seems like it doesn't needed to be there. and it shows all shipping option.


see below is the complete shipping.php for catalog/includes/classes/shipping.php

if anyone can find a better fix, please added to this...

you can compare for which part to modify!

<?php
/*
$Id: shipping.php,v 1.23 2003/06/29 11:22:05 hpdl Exp $

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

class shipping {
var $modules;

// class constructor
function shipping($module = '') {

// start indvship
// global $language, $PHP_SELF;
global $language, $PHP_SELF, $cart;
// New to fix attributes bug
$cart_products = $cart->get_products();
if (tep_not_null($cart_products)) {
$real_ids = array();
foreach($cart_products as $prod){
$real_ids[] = tep_get_prid($prod['id']);
}
$sql = "SELECT products_ship_methods_id FROM ".TABLE_PRODUCTS_SHIPPING." WHERE products_id IN (".implode(',',$real_ids).") AND products_ship_methods_id IS NOT NULL AND products_ship_methods_id <> ''";
$query = mysql_query($sql);
// End new bug fix
$allow_mod_array = array();
while($rec = mysql_fetch_array($query)){
if(empty($allow_mod_array)) $startedempty = true;
$methods_array = array();
$methods_array = explode(';',$rec['products_ship_methods_id']);
if(!empty($methods_array)){
foreach($methods_array as $method){
$allow_mod_array[] = $method;
}
}
if($startedempty){
$startedempty = false;
}else{
$temp_array = array();
foreach($allow_mod_array as $val){
$temp_array[$val]++;
}
$allow_mod_array = array();
foreach($temp_array as $key => $val){
if($val > 1){
$allow_mod_array[] = $key;
}
}
}
}
}
// INDIV_SM END
if (defined('MODULE_SHIPPING_INSTALLED') && tep_not_null(MODULE_SHIPPING_INSTALLED)) {
$this->modules = explode(';', MODULE_SHIPPING_INSTALLED);
// INDIV_SM START
if (tep_not_null($cart_products)) {
$temp_array = $this->modules;
$this->modules = array();
foreach($temp_array as $val){
if(mysql_num_rows($query)==0 || in_array(str_replace('.php','',$val),$allow_mod_array)) {
$this->modules[] = $val;
}
}
}
// INDIV_SM END
$include_modules = array();

if ( (tep_not_null($module)) && (in_array(substr($module['id'], 0, strpos($module['id'], '_')) . '.' . substr($PHP_SELF, (strrpos($PHP_SELF, '.')+1)), $this->modules)) ) {
$include_modules[] = array('class' => substr($module['id'], 0, strpos($module['id'], '_')), 'file' => substr($module['id'], 0, strpos($module['id'], '_')) . '.' . substr($PHP_SELF, (strrpos($PHP_SELF, '.')+1)));
} else {
reset($this->modules);
//// original block >>>>
while (list(, $value) = each($this->modules)) {
$class = substr($value, 0, strrpos($value, '.'));
$include_modules[] = array('class' => $class, 'file' => $value);
}
}
//// end original block <<<<
/* >>>> below where it doesn't show all option, and doesn't seem nessecarily needed <<<<<<<<<<<
// start indvship
//while (list(, $value) = each($this->modules)) {
// $class = substr($value, 0, strrpos($value, '.'));
// $include_modules[] = array('class' => $class, 'file' => $value);
//}
//}

if($indvcount==sizeof($products)){
if ((tep_get_configuration_key_value('MODULE_SHIPPING_INDVSHIP_STATUS')) && ((tep_not_null($shiptotal)) || $shiptotal == 0)) {
$include_modules[] = array('class'=> 'indvship', 'file' => 'indvship.php');
}
} else {
if(sizeof($products)>$indvcount){
while (list(, $value) = each($this->modules)) {
$class = substr($value, 0, strrpos($value, '.'));
if (($class !='freeshipper') && ($class != 'indvship')) { // comment to show all ship options
// if ($class !='freeshipper') { // uncomment to show all ship options
$include_modules[] = array('class' => $class, 'file' => $value);
}
}
}
}
}
// end indvship
*/
for ($i=0, $n=sizeof($include_modules); $i<$n; $i++) {
include(DIR_WS_LANGUAGES . $language . '/modules/shipping/' . $include_modules[$i]['file']);
include(DIR_WS_MODULES . 'shipping/' . $include_modules[$i]['file']);

$GLOBALS[$include_modules[$i]['class']] = new $include_modules[$i]['class'];
}
}
}

function quote($method = '', $module = '') {
global $total_weight, $shipping_weight, $shipping_quoted, $shipping_num_boxes;

$quotes_array = array();

if (is_array($this->modules)) {
$shipping_quoted = '';
$shipping_num_boxes = 1;
$shipping_weight = $total_weight;

if (SHIPPING_BOX_WEIGHT >= $shipping_weight*SHIPPING_BOX_PADDING/100) {
$shipping_weight = $shipping_weight+SHIPPING_BOX_WEIGHT;
} else {
$shipping_weight = $shipping_weight + ($shipping_weight*SHIPPING_BOX_PADDING/100);
}

if ($shipping_weight > SHIPPING_MAX_WEIGHT) { // Split into many boxes
$shipping_num_boxes = ceil($shipping_weight/SHIPPING_MAX_WEIGHT);
$shipping_weight = $shipping_weight/$shipping_num_boxes;
}

$include_quotes = array();

reset($this->modules);
while (list(, $value) = each($this->modules)) {
$class = substr($value, 0, strrpos($value, '.'));
if (tep_not_null($module)) {
if ( ($module == $class) && ($GLOBALS[$class]->enabled) ) {
$include_quotes[] = $class;
}
} elseif ($GLOBALS[$class]->enabled) {
$include_quotes[] = $class;
}
}

$size = sizeof($include_quotes);
for ($i=0; $i<$size; $i++) {
$quotes = $GLOBALS[$include_quotes[$i]]->quote($method);
if (is_array($quotes)) $quotes_array[] = $quotes;
}
}

return $quotes_array;
}

//start indvship
function get_shiptotal() {
global $cart, $order;
$this->shiptotal = '';
$products = $cart->get_products();
for ($i=0, $n=sizeof($products); $i<$n; $i++) {
if (tep_not_null($products[$i]['products_ship_price'])) {
$products_ship_price = $products[$i]['products_ship_price'];
$products_ship_price_two = $products[$i]['products_ship_price_two'];
$products_ship_zip = $products[$i]['products_ship_zip'];
$qty = $products[$i]['quantity'];
if(tep_not_null($products_ship_price) ||tep_not_null($products_ship_price_two)){
$this->shiptotal += ($products_ship_price);
if ($qty > 1) {
if (tep_not_null($products_ship_price_two)) {
$this->shiptotal += ($products_ship_price_two * ($qty-1));
} else {
$this->shiptotal += ($products_ship_price * ($qty-1));
}
}/////////////NOT HERE <<------------
}
}
}// CHECK TO SEE IF SHIPPING TO HOME COUNTRY, IF NOT INCREASE SHIPPING COSTS BY AMOUNT SET IN ADMIN/////////////move back here <<------------
if (($order->delivery['country']['id']) != INDIVIDUAL_SHIP_HOME_COUNTRY) {
if(INDIVIDUAL_SHIP_INCREASE > '0' || $this->shiptotal > '0') {
$this->shiptotal *= INDIVIDUAL_SHIP_INCREASE;
} else {
$this->shiptotal += INDIVIDUAL_SHIP_INCREASE * $this->get_indvcount();
}
return $this->shiptotal;
// not sure why this is needed, but it now works correctly for home country - by Ed
} else {
$this->shiptotal *= 1;
return $this->shiptotal;
}
}

function get_indvcount() {
global $cart;
$this->indvcount = '';
$products = $cart->get_products();
for ($i=0, $n=sizeof($products); $i<$n; $i++) {
if (tep_not_null($products[$i]['products_ship_price'])) {
$products_ship_price = $products[$i]['products_ship_price'];//}
$products_ship_price_two = $products[$i]['products_ship_price_two'];
if(is_numeric($products_ship_price)){
$this->indvcount += '1';
}
}
}
return $this->indvcount;
}

// end indvship

function cheapest() {
if (is_array($this->modules)) {
$rates = array();

reset($this->modules);
while (list(, $value) = each($this->modules)) {
$class = substr($value, 0, strrpos($value, '.'));
if ($GLOBALS[$class]->enabled) {
$quotes = $GLOBALS[$class]->quotes;
for ($i=0, $n=sizeof($quotes['methods']); $i<$n; $i++) {
if (isset($quotes['methods'][$i]['cost']) && tep_not_null($quotes['methods'][$i]['cost'])) {
$rates[] = array('id' => $quotes['id'] . '_' . $quotes['methods'][$i]['id'],
'title' => $quotes['module'] . ' (' . $quotes['methods'][$i]['title'] . ')',
'cost' => $quotes['methods'][$i]['cost']);
}
}
}
}

$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;
}
}
}
?>



Important, this is not a complete package, only fix!
sorry, i messed up alittle bit at the product listing sql query, for product listing,

Erase this if you already install:
$product_query = tep_db_query("select products_description, shipping_description from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$listing['products_id'] . "' and language_id = '" . (int)$languages_id . "'");
$product = tep_db_fetch_array($product_query);
$new_products['products_description, shipping_description'] = $product['products_description, shipping_description'];


Find or replace the above with this:
$product_query = tep_db_query("select products_description from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$listing['products_id'] . "' and language_id = '" . (int)$languages_id . "'");
$product = tep_db_fetch_array($product_query);
$new_products['products_description'] = $product['products_description'];

and add this below:
$product_query = tep_db_query("select shipping_description from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$listing['products_id'] . "' and language_id = '" . (int)$languages_id . "'");
$product = tep_db_fetch_array($product_query);
$shipping_description['shipping_description'] = $product['shipping_description'];


then use this: instead of the one in the instruction.

<!-- this block of code -->
<tr><td>
';
if(tep_not_null($shipping_description['shipping_description'])) echo '&#149;'; else echo '&#149; Carrier information is not available.'; echo $shipping_description['shipping_description'];

echo '
</td></tr>
<!-- this block of code -->

   Posted on: 02/22/2009     See contribution details
Displaying 163 to 171 (of 1445 contributions) Result Pages: [<< Prev]  ... 11  12  13  14  15  16  17  18  19  20 ...  [Next >>]