Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Help needed with adding products

add products query iframe shopping cart

7 replies to this topic

#1 JohnHurst

  • Community Member
  • 6 posts

Posted 29 November 2011, 18:36

I am running OSC 2.3.1.

Here is the scenario:

I have a site that pulls products from a large database of 100K+ products through an iframe. I need the product chosen by the customer to populate in the shopping cart with the proper description.

So far:

I have accomplished the task of getting the product to Add to cart with an action call to a dummy product. Item 29 in my product list has only a title and price tag of $10 (which is not correct)

I need to modify the shopping_cart.php (i believe) to modify/override/change the product description and price through the query string. I have set up the iframe variables to match the OSC database variables but nothing is pushing through.

Here is the iframe contents from the site:

http://utilities.coverking.com/partlookup/default.aspx?dl=CSS82&SessionID=123456&h=hdr1&f=ftr1&pf=3&Skin=_CarSkins2_CSS82__1628#

If you add to cart, you'll see the Coverking Item get placed into the cart but no variables.

Please help.

Edited by Jan Zonjee, 18 December 2011, 07:41.


#2 JohnHurst

  • Community Member
  • 6 posts

Posted 16 December 2011, 23:26

Anybody out there?

#3 MrPhil

  • Community Member
  • 3,294 posts
  • Real Name:Phil
  • Gender:Male

Posted 17 December 2011, 04:35

Yes, we're out here. I suspect that you haven't gotten any suggestions because what you're asking for sounds like not a minor change to osC, but a complete repurposing and restructuring. If I understand you, your product database and search/display engines are on another site, and all you do is view it through an iframe, using osC only for the cart and checkout? One of the problems is that I believe that the cart is not a simple list of names and prices, but points back into the database (to stay "live"). Perhaps you could add products on the fly to your store's database, so that the cart thinks it's looking into the real database (when it's actually looking at a partial copy). You would have to make sure that the act of removing items from the cart purges them from the local database, and likewise for abandoned carts.

I wouldn't think it would be worth all that effort just to use a small part of osC. I presume that you're not interested in loading the entire foreign database into your store, using something like EasyPopulate. Frankly, I think it would be easier to "roll your own" cart and checkout (perhaps borrowing pieces from osC) than to try to bend osC into shape to do what you want. That's all I'm able to offer on the subject...

#4 JohnHurst

  • Community Member
  • 6 posts

Posted 17 December 2011, 18:29

Thank you very much for the response. I appreciate it.

The first reason I was hoping to use osc was the fact that I was looking to have my own universal products as well that would be able to get added to the cart with the 'iframe' products and with shipping/discounts/etc osc has always been my choice.

The second reason I came here is because I saw a site doing what I am looking to do and they are doing it with osc. (i had to read that over to make sure it was correct, haha)

I noticed by looking are their osc, they have a 'dummy' product with just a name and a price. When the iframe query string sends the variables thru it does not modify the name, only the description and price.

I also noticed that they had <i> in the beginning of their description.

I hope this clarifies the reason for approaching the forum regarding this matter.

I will take a peek at easy populate to see what I can do. Any further help would be greatly appreciated, as I can get the product called to the cart just cannot seem to get the desc and price to change.

#5 JohnHurst

  • Community Member
  • 6 posts

Posted 23 January 2012, 23:40

Greetings everyone. I'm revisiting this thread due to the fact that I am still unable to complete the task at hand. I would greatly appreciate some help being pointed in the right direction.

Regarding the above asked questions, I would like to provide a site that is currently accomplishing the tasks I am trying to do.

It seems to me that they have created a standard product in OsC with simple or no values. This product is then modified by the iframe and placed into the cart. I have gotten to the point where it adds the product to the cart but unfortunately i cannot get it to modify the description and price to what i need.

Here is a link to the site: http://www.carcoverexperts.com/coverking-custom-car-covers-p-579.html -- Scroll to the bottom to view the iframe and make some choices, add to cart. You will see the product description and price from the iframe imported. I tried it a few times and every time it is Product ID 579 that is added.

That being said, I know it is possible, just wondering if I need to make changes to some of the .php files, add certain code to a product or both.

Thanks in advance.

#6 JohnHurst

  • Community Member
  • 6 posts

Posted 28 January 2012, 01:58

Please help ^^^^

#7 toyicebear

  • Community Sponsor
  • 5,694 posts
  • Real Name:Nick
  • Location:World Citizen

Posted 28 January 2012, 02:08

It looks to be added as an "attribute" and not as a product description.
Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce

Check out my profile [click here] for information on professional services, custom coding, templates, SEO optimization, modifications, commercial support and help.

#8 JohnHurst

  • Community Member
  • 6 posts

Posted 30 January 2012, 03:49

@toyicebear I could go that route but I believe I still run into the same issue. I still cannot get the value to pass through to the cart.