Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Disable the Shopping Cart?


nessagood

Recommended Posts

I have a client who wishes to have the store and products visible... just doesn't want the customers to be able to purchase them yet. They want to hide the prices and the buy now buttons for now... is there an easy way to do this? Or do I have to butcher the php code... I really don't want to have to do that, it seems like an all-day job. Any information would be greatly appreciated. :) This is my first time using OS commerce, although I'm experienced in PHP.

 

Thanks.

Link to comment
Share on other sites

I have a client who wishes to have the store and products visible... just doesn't want the customers to be able to purchase them yet. They want to hide the prices and the buy now buttons for now... is there an easy way to do this? Or do I have to butcher the php code... I really don't want to have to do that, it seems like an all-day job. Any information would be greatly appreciated. :) This is my first time using OS commerce, although I'm experienced in PHP.

 

Thanks.

I think this should do it for you:

http://www.oscommerce.com/community/contri...online_purchase

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

I have a client who wishes to have the store and products visible... just doesn't want the customers to be able to purchase them yet. They want to hide the prices and the buy now buttons for now... is there an easy way to do this? Or do I have to butcher the php code... I really don't want to have to do that, it seems like an all-day job. Any information would be greatly appreciated. :) This is my first time using OS commerce, although I'm experienced in PHP.

 

Thanks.

 

I have this implemented on one site with

 

1) Prices for Logged-In Users Only: http://www.oscommerce.com/community/contributions,601

 

and

 

2) Member Approval: http://www.oscommerce.com/community/contributions,2062

Link to comment
Share on other sites

That worked beautifully...

Now, to try to find a way to mask the prices.. :)

 

masking the prices is absolutely easy ... a typical Monika hack hehe ... and it's nice as you can enter prices and just remove the extra line whenever you decide you want to use the shop for real!

 

 

find this in catalog\includes\classes\currencies.php

 

// class methods
function format($number, $calculate_currency_value = true, $currency_type = '', $currency_value = '') {
  global $currency;

 

right below the global line, add this:

 return '';

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

masking the prices is absolutely easy ... a typical Monika hack hehe ... and it's nice as you can enter prices and just remove the extra line whenever you decide you want to use the shop for real!

find this in catalog\includes\classes\currencies.php

 

// class methods
function format($number, $calculate_currency_value = true, $currency_type = '', $currency_value = '') {
  global $currency;

 

right below the global line, add this:

 return '';

 

I actually figured that one out myself just by playing around. I did the exact same thing.

I spoke with my client some, and I've discovered why they didn't want it shown.

First of all, we're Canadian. When we type in the price ($30) for example, we want this to show on the site. We want to be dealing in only CAN currency remember. However, if we enter $30, it shows up on the website as $26.37 (US dollars)... but "Canadian" is indeed set as the default currency.

 

I'm all new to this by the way, this was just thrown on my lap this afternoon. :P

Link to comment
Share on other sites

I actually figured that one out myself just by playing around. I did the exact same thing.

I spoke with my client some, and I've discovered why they didn't want it shown.

First of all, we're Canadian. When we type in the price ($30) for example, we want this to show on the site. We want to be dealing in only CAN currency remember. However, if we enter $30, it shows up on the website as $26.37 (US dollars)... but "Canadian" is indeed set as the default currency.

 

I'm all new to this by the way, this was just thrown on my lap this afternoon. :P

you probably have "use default language currency" set to true in the admin my store section ...

 

if you do not want US dollars at all, I suggest deleting that currency choice completely

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

you probably have "use default language currency" set to true in the admin my store section ...

 

if you do not want US dollars at all, I suggest deleting that currency choice completely

 

I found out how to make it work. The "value" option was off in the Localization - Currencies section.. Just set "CAN" to 1, US to "0.8885", etc. Works great.

 

This is a great program. :P

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...