Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to modify displayed price?


The Smoothy

Recommended Posts

Posted

After a while of messing with formulae, I finall managed to include a price calculator on my site.

Now I have the problem:

How do i include the inputted data and the price into the cart!

Im still a newbie, but Im learning!

Any help would be greatly appreciated.

You can see the page here

Posted

I need the width and drop and the price to be added to the cart and the displayed price to be update.

Any Ideas?

Anybody?!

Posted
After a while of messing with formulae, I finall managed to include a price calculator on my site.

Now I have the problem:

How do i include the inputted data and the price into the cart!

Im still a newbie, but Im learning!

Any help would be greatly appreciated.

You can see the page here

 

there is a contribution that allows you to state your own price for a product. maybe that, with your calculator will be close to what you want. i'm not sure of the name, so you'll have to search the contributions...i think it was 'name your own price' or something.

 

hope that helps.

Posted

I`m working on a variable deposit system that has similar problems, its not finished yet but I can give you some clues perhaps.

 

You need to modify application_top to alter the call to the shopping cart class to send that class the data, then modify class to accept & store data, then modify shopping_cart.php to display data and so on (I`ve not done next stage yet).

 

If you find another solution let us know.

 

:)

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Posted

Thanks Dav, Sam

Usefull advice I'll see what i can come up with and let you both know how it goes.

If you have any further ideas please let me know.

Posted

Alright, you're having the same problem as me... here is my quick run through of how I'm going to tackle this (if i can't find another solution).

 

4ruxqp.png

 

On the back end, each of the editable fields are stored in the database and are related to the product.

 

On the front end, there will be a drop down menu that lets you select these predetermined dimensions. I'm going to use some AJAX to update the pricing field. This way (I hope), when it gets sent to the cart, it will use the given variable as price.

 

I just installed osCommerce last night so there is a bunch that I need to learn about the framework... It should work - ha ha!

"in all good time, great things shall happen."

Posted

Alright, I'm making progress...

I've got AJAX to update a "price field" based off of selected drop down dimensions...

 

I'm only testing this on a sample page not linked to my osCommerce site. I'm thinking I can hack around a bit with osCommerce and get this to work.

 

Check it out:

 

http://www.ronlg.com/pricematrix.php

"in all good time, great things shall happen."

Posted
Alright, I'm making progress...

I've got AJAX to update a "price field" based off of selected drop down dimensions...

 

I'm only testing this on a sample page not linked to my osCommerce site. I'm thinking I can hack around a bit with osCommerce and get this to work.

 

Check it out:

 

http://www.ronlg.com/pricematrix.php

 

Hi Ron!

WOW...some real progress there!!

I had given up using dropdowns, mainly because the dimensions need to be exact and in MM up to 2400.

I managed to get Product attribute option type installed and using 2 text inputs instead of my calculator....

I had a bit of a EUREKA moment when I set it up using extra prefix and had a multiplication function, allowing me to use a calculation to achieve the correct price.

It was all going too well....the product was added to cart with the text inputs and the price calculated correctly(ish)

But it had one major flaw..... because the price was dependant on what measurement was entered, if you saved the product to the cart and logged out, when you logged back in, the product had lost the measurements asnd as such, the price aswell.

So.....

Back to the drawing board!

Heres the page, here

also, the multiplication relies on the base price ..... so the product must have a base price for the calculation to work..

Posted

I understand where you're coming from as far as the measurements. In fact, this website is for the same industry :P

Here in the states, we measure in 3 different points; top, middle, bottom or left, middle, right... then round to the nearest 1/8th inch. I'm not exactly sure how that'd work in the metric system - but that's how we do it!

 

You know, I was up all night brainstorming as to how I'll go about getting this tied into osCommerce. My conclusion is that it's going to be pretty tricky, considering I'm not even 2 days into being very familiar with the code!

 

At least I feel I'm on the right track.

 

I'll keep you posted - let me know if you think of anything else.

"in all good time, great things shall happen."

Posted

As time is of the esscence, I have had to set the shop up using paypal as the cart.

This is because passing the required variables to paypal is way easier than in Osc and they can be manipulated just as easy.

I still need some form of CMS solution to the problem as without a products database, all items need to be written onto their own pages increasing bandwidth and coding time.

 

If anybody gets any further with Oscommerce as an answer, let me know!!!

 

 

Smoothy

Archived

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

×
×
  • Create New...