Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

lee987

Pioneers
  • Posts

    22
  • Joined

  • Last visited

Profile Information

  • Real Name
    Lee Stanley

lee987's Achievements

  1. I am also looking for a solution to the same problem. I need to make sure the option is created. If nothing is input in the text field then the option is not created in the cart and there is no record in the database. I need to force creation of the field in the cart somehow. I have spent hours and hours working on this trying to make this work. account_edit.php uses messageStack to create an error message. I have tried to apply the same logic to product_info.php but so far I have failed. I have forced an initial entry to 'tba' into the field but this could still be removed by the customer before they click the Add to Cart button and then the option would not be created. Can anyone provide a solution, or can anyone give me some additional clues on what happens when the 'Add To Cart' button is pressed. I am not managing to make total sense of it yet. Thanks very much Lee
  2. Thanks Steve. Yes I did do the database change. It appears to be the same as that instructed in the v1.2 instructions, yes? 2 extra queries are listed there. I will check through all the code changes again. All the best Lee
  3. PS If I set Make Loader Page Popup to true in admin, the OPC page hangs after doing some calculations. If I set it to false all is well. Any idea what might cause that, or how to identify which function call is causing the stop? Thanks Lee
  4. OK, I can't find it. I searched the store for TABLE_CUSTOMERS_BASKET_ATTRIBUTES to find out what functions impact this table. With OTF there is an extra field called 'products_options_value_text'. I am looking for somewhere else that updates that table which isn't aware of that extra field, but I cannot find any new code relating to that table. The only relevant functions which update that table are in includes/classes/shopping_cart.php and admin/includes/classes/shopping_cart.php. So why does updating the cart work OK without OPC, but when I use OPC it deletes the text in those fields when the customer presses update? Does the update button in OPC not take a snapshot of what is in the shopping cart? The only place this data is stored is in the customer_basket_attributes table. Instead does OPC empty the basket and recreate the products from the various products tables each time the update button is pressed and is therefore doomed to failure? If so where does it do that and how can I make it use the same logic as the non OPC update button? HELP please. Thanks Lee
  5. Hi Steve (or anyone else out there for that matter) I installed 1.2 and thought all my prayers had been answered. The account is now set up before going to paypal. Hurray. A word of caution to anyone using paypal_ipn, OPC v1.2 now includes a version of the file catalog/includes/modules/payment/paypal_ipn.php which was not included previously. I had to use my own version which was already there from IPN v2.3.3 rather than this new version. HOWEVER, then I spotted another even more important problem, which applies to 1.1 and 1.2. I didn't spot it earlier. I rolled back to v1.1 to check that I was not imaging things. I have Options Type Feature (OTF) installed which may or may not be relevant and just realised that the update cart process used by OPC is different to normal. Without OPC all modifications to the cart are performed by catalog/shopping_cart.php. On the order confirmation page, if the customer wants to update products he is directed to catalog/shopping_cart.php and the changes are done there before returning through the multiple screens. That all works fine. If OPC is turned on, the options are carried forward to the OPC page and if no changes are made to the shopping cart in checkout.php then all is well. BUT if the quantity in the cart on the OPC page is changed the options are lost. The values in field 'products_options_value_text' in table 'customers_basket_attributes' appear to be deleted during the cart update. I cannot find where the update to that table is done in OPC. Please can you point me to where it is done so maybe I can modify it. Thanks very much Lee
  6. Hi Steve I tried that before and it didn't work. I tried it again just now and this is what it gives. In admin it looks OK as £ having typed in £, but it doesn't work on the screen. See below. Putting header("Content-Type: text/html; charset=UTF-8\n"); at the top of checkout.php made the most positive change, I am now just left with the white on black £ image in the cart until update is pressed.
  7. Hi Steve No, I installed latest version of OPC for the first time earlier this week. Everything else appears to work fine in terms of returning from paypal. The emails fire off correctly via ipn.php in catalog/ext/modules/payment/paypal_ipn, I have now fixed getting telephone number required and a few other minor issues (except the ajax-loader.gif which the demo does not have working either?) but this is weird. The redirect within PayPal is only for completed purchases yes? so that shouldn't have any bearing on this. Cancel and Return to (name of shop) sends back to checkout.php correctly and even returns the correct session parameters (checkout.php?osCsid=??????????????????) as from when the Continue button was pressed. I wondered if it was because I only have one payment module and one shipping module, so I installed another of each. Still it does not work. Only if the payment is completed is the account created. Very peculiar! When does the code create the account in theory? I have not made any changes to checkout.php which could affect this (only added header("Content-Type: text/html; charset=UTF-8\n"); after <?php at the top, and changed the comment for the Sign In Button) I guess it is something to do with checkout_process.php (I made all the necessary changes) or ipn.php or paypal_ipn.php. I made the changes I think which were needed and I have tried different combinations with no success. Any ideas? Thanks Lee
  8. Hi I also have a minor problem with the £ Pound sign still. I have done all the changes suggested so far and the only problem I have is that when we get to the OPC page the values in the cart section at the top are not quite right. But when you click update everything is corrected. See the 2 images below. How can I force the page to do a cart update after the page has loaded in order to make this minor issue go away? Thanks
  9. Thanks Steve, but on further investigation this works on the demo site with the PayPal payment method selected. Use the OPC page to enter account information and passwords, then proceed to paypal and then cancel. On the demo site all the details are remembered and an account has been created. I have tried all 3 settings on our website with the same result - on cancelling in paypal and being returned to the website, all the fields are blank and no account has been created. Therefore there must be something set up differently between my shop and the demo shop. You can see our shop at silverstoneschoolsparking dot co dot uk. There is a test product up at the moment. Create an order but cancel in paypal and you will see what I mean. Any help appreciated. Thanks
  10. Hi I have managed to get this contribution almost sorted for my needs, but I have a problem with the creation of customer accounts. I have Account Creation set to required and Required Login to False. New customer enters all their details down to and including the password twice and then clicks Continue in order to checkout (we only take paypal for payments) (Paypal IPN v2.3.3 or thereabouts). After payment is finished paypal automatically redirects back to the order confirmation page - perfect. BUT if the customer returns to the shop BEFORE payment is completed, all the address details are lost, AND NO ACCOUNT HAS BEEN CREATED. I could set Required Login to True, but then the customer is sent to the 'normal' Login page and we lose the biggest advantage of OPC. We want everyone to have an account set up using the password the customer chose, using the OPC interface. Is it possible? Is it possible to make the account creation happen when the Continue button is pressed, rather than on successful return from Paypal? Thanks very much.
  11. Thanks Geoff. Sorry for not getting back sooner. Ref item 1, I didn't quite follow the reasoning, but will re-read and try to figure it out. Ref item 3, there are boxes to specify them differently, it just doesn't happen for me. If I set the permissions to be different for admin and non admin, ALL the php files are set to the permissions specified for non admin. All the best Lee
  12. Hi Geoff Thanks for a great contribution. I have installed it and it functions fine, but I have a couple of observations. 1)I also get the message below. The admin directory is called catalog Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/sites/website.co.uk/public_html/catalog/admin/check_permissions.php on line 360 Type Name Original permissions Actions / Results The directory backups exists, so this is OK. File ./products_new.php 644 OK . . . 1146 - Table 'database.TABLE_COUNTER' doesn't exist select startdate, counter from TABLE_COUNTER [TEP STOP] Note: I have changed the names of website, catalog and database in the above, and taken out all the filenames except the first one. 2)The settings for configure.php files sets ALL files which end in configure.php, so therefore it also sets sitemonitor_configure.php to the same setting. Is that intentional? I think you are using *configure.php to identify the configure files. 3)It is not possible to set the admin php files different to the non admin php files. It appears to use the non admin php setting for all php files. Has anyone else noticed that? All the best Lee
  13. Hi all I have installed v1.7 and I have a problem at Step 5. Steps 1 to 4 have been done to the letter. I even restored my site and tried it again being very careful to get it exactly right, but maybe I did something wrong? When I go to admin, SiteMonitor I get the following message "Not Found The requested URL /catalog/admin/FILENAME_FORBIDEN was not found on this server." Please can someone tell me what I did wrong? Thanks Lee
  14. Thanks very much Keith. I will try to understand it. Has anyone else managed to do this for Paypal IPN v2? Thanks very much Lee
  15. QUOTE(lee987 @ Feb 29 2008, 09:47 PM) Hi I am trying to install both paypal IPN v2.3.3 and Product attributes - Option Type Feature. I have an issue with checkout_process.php, so I believe I need (in this case) to modify ipn.php OTF says to change the following $products_ordered_attributes .= "\n\t" . $attributes_values['products_options_name'] . ' ' . $attributes_values['products_options_values_name']; REPLACE with // OTF contrib begins //$products_ordered_attributes .= "\n\t" . $attributes_values['products_options_name'] . ' ' . $attributes_values['products_options_values_name']; $products_ordered_attributes .= "\n\t" . $attributes_values['products_options_name'] . ' ' . tep_decode_specialchars($order->products[$i]['attributes'][$j]['value']); // OTF contrib ends However, ipn.php is not the same. It has the following $products_ordered_attributes .= "\n\t" . $order->products[$i]['attributes'][$j]['option'] . ' ' . $order->products[$i]['attributes'][$j]['value']; Please can someone advise exactly what I need to do in ipn.php Thank you all very much Can anyone out there help me on this one? Have I missed something. I think this is causing me a problem, when I turn on downloads, the stock updating stops working, and I think this is the reason. Everything else works fine (order email, confirmed order/ delivered, stock updates etc) until I turn downloads on, then suddenly everything still works EXCEPT the stock update (this is the same even though I have not yet set up any download attributes) I do not need the attribute stock updating, just the item stock (items are modified to suit the attribute set, so I do not have separate stock of items with different attributes, just stock of the standard item, which I need updating) Please can someone help? It's driving me round the bend! Thanks very much
×
×
  • Create New...