Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

dcstudio

Archived
  • Posts

    6
  • Joined

  • Last visited

About dcstudio

  • Birthday 11/29/1974

Profile Information

dcstudio's Achievements

  1. dcstudio

    Protx Direct v2.22

    Hi Tom, The string which is posted to protx is absolutely ok IF it gets the cart contents from $products_array[] = array('id' => $products_id, 'name' => $products['products_name'], 'model' => $products['products_model'], 'image' => $products['products_image'], 'price' => $products_price, 'quantity' => $this->contents[$products_id]['qty'], 'weight' => $products['products_weight'], 'final_price' => ($products_price + $this->attributes_price($products_id)), 'tax_class_id' => $products['products_tax_class_id'], // OTF contrib begins //'attributes' => (isset($this->contents[$products_id]['attributes']) ? $this->contents[$products_id]['attributes'] : '')); 'attributes' => (isset($this->contents[$products_id]['attributes']) ? $this->contents[$products_id]['attributes'] : ''), 'attributes_values' => (isset($this->contents[$products_id]['attributes_values']) ? $this->contents[$products_id]['attributes_values'] : '')); // OTF contrib ends } I set up a duplicate shop on another server (same files and same db data) and it seems to work properly... so I guess the problem is php/mysql related :( The differences are: Server 1 (live shop - managed server) php - 4.2.2 mysql - 3.23.52 ssl - yes protex link - live transactions Server 2 (test server - shared hosting with 1and1) php - 4.4.7 mysql - 4.0.25 ssl - no protex link - test server (not simulator) Chaman
  2. Sorry, I'll try and explain better. I am trying to track down a really anoying bug where almost every other time you click the payment confirmation button the basket contents dissappears before the protx_process page can run (http://www.oscommerce.com/forums/index.php?s=&showtopic=195199&view=findpost&p=1158084), so I was checking the contribs I have used to see if there where any updates. In the lastest STS contrib you say So I just change the ob_clean() to ob_end_clean() in the sts.php file (around line 116). Having only changed this I then found that the end of the template file was being cut off. '</' was visible at the bottom of the page and when I viewed the source my closing </html> tag was now only </ , if I added a comment afterwards it would truncate the comment instead and leave <!--. When I changed ob_end_clean() abck to ob_clean() everything went back to normal. I just thought that I would mention it, but maybe its only me that it happend to!? BTW how was the bug manifesting itself?
  3. From what I can see in this file ob_clean() has changed to ob_end_clean() around line 116. Changing this however results in the last part of my templates '</html>' tag being cut off leaving me with '</' - which is obviously not so good...
  4. dcstudio

    Protx Direct v2.22

    Update: Still have problem even with Protx Test Server .... :(
  5. dcstudio

    Protx Direct v2.22

    Having done further testing I think there is something happening to the session after a payment has been made. (The oscid visible in the url is the same but something is wrong). This is what happens: 1 - Fresh user or session comes along adds any products to basket, goes through checkout fine, makes payment fine, account and admin info absolutely OK. 2 - But... if that user then goes a adds something else to their basket they can go through checkout proccedure as before, except that after clicking 'confirm' the $cart contents dissappears and therefore causes problems on the protx_process page. Because I couldn't work out why the cart vanishes I added in a check for an empty cart which throws you back to the basket (which now automatically displays the empty cart message) and my own 'sorry/error' message. (Maybe my problem is not knowing how and where OSC stores the cart info at any particular time - db and/or session vars). 3 However, if that user then goes an adds something to the basket it will work again as in step 1, and then if they try again it will fail as in step 2...... Any ideas? Maybe its only a problem with the stimulator server? (can always hope!)
  6. dcstudio

    Protx Direct v2.22

    Hello, Just coming to the end of my first oscommerce project and am having some problems with Protex Direct v4.4 . I am testing with the Protex Simulator and it looks like the order total and shipping cost is getting there, but the products and their costs are not. I get returned to the checkout_success page but when you check the order details in 'my account' or in the admin/orders all you see is the shipping cost (the product info has been lost). When I try a virtual product (ie shipping cost is zero) the same happens except the shipping is zero So for instance a book £22.50 has a shipping cost of £8.50, Protx sees the total amount (£31) but only shows 'Basket Contents ( 1 line(s) of detail)' which is the shipping details of £8.50. Back on osc all you see is the £8.50, the products have disappeared.... I am using the product attributes option type contrib (160) to add extra attributes to my wieghtless items (there are several types: tickets, donations, downloads and applications). I know this adds some extra stuff to the basket array, colud that be the problem? Could be changing the structure for products which don't have any attributes (like the book)? I am also using the Download Controller contrib (994) with adds the ability to have free shipping for zero weight items. Also I am using STS templating (which I know is causing a problem for the 3D/cvs popups). How do I find out what post information is supposed to be going to protx and where are those pesky products going??? Protex Direct config: Enable Protx Direct Module True Vendor Name vindolanda Transaction Mode Simulator Authorisation Type PAYMENT Merchant Account E Send Shopping Cart True Debug False Sort order of display. 0 Frustratingly, when I look back at some of the older transaction logs on protx there do seem to be some book products which do get accross to protex and make it back to osc, but at the same time my virtual products were dumping me back to the shopping_cart page with no confirmations... Any help or pointers would be greatly appriciated. Thanks Chaman
×
×
  • Create New...