Jump to content


  • Posts

  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

cutecube's Achievements


Newbie (1/14)



  1. That did it !!! THANK YOU SO MUCH! You are one great support person!
  2. $coupon_id = (isset($_POST['coupon']['coupon_id'])) ? (int)$_POST['coupon']['coupon_id'] : null; $record = array( 'code' => preg_replace('/[^\w\-\_]/g', '', $_POST['coupon']['code']), 'product_id' => null, 'expires' => $_POST['coupon']['expires'], 'allowed_uses' => (int)$_POST['coupon']['allowed_uses'], 'min_subtotal' => $_POST['coupon']['min_subtotal'], 'shipping' => $_POST['coupon']['shipping'], 'description' => $_POST['coupon']['description'], 'free_shipping' => $_POST['coupon']['free_shipping'], ## Temporary reset 'discount_percent' => 0, 'discount_price' => 0 );
  3. I installed it and did some small edits on the look of it in templates files. There is an admin.bak directory that I created to keep the original files in, in case I needed to make changes to any file. That's not the directory I changed the files in. Should I delete that directory? To the best of my knowledge, I never did any editing on anything related to admin stuff unless you told me to for some reason in the forum. I can't remember if you did. One thing to keep in mind. This has been working as late as July 2020. I haven't touched it since then. The only other weird situation is that everything BUT the name gets put into the database when I click on 'save', as you can see from above the 'code' name is blank. One more thing I just noticed. In the db, there is an 'exclude' word under 'product id'. When I created the older codes, I never went into the tab where you included or excluded products. However, when I created the new code now, I clicked on that tab and noticed that it said "Promotional code applies to all EXCEPT above products", which I selected since I had no products listed. The old codes worked without selecting "Promotional code applies to all EXCEPT above products"
  4. I want to thank you for taking so much time to try and help me. it means a lot to me. Sorry I got the last post wrong. Hopefully I got it right this time. Content-Type: multipart/form-data; boundary=---------------------------8483554229233913531803576152 Content-Length: 2038 -----------------------------8483554229233913531803576152 Content-Disposition: form-data; name="coupon[code]" superdeal -----------------------------8483554229233913531803576152 Content-Disposition: form-data; name="coupon[description]" -----------------------------8483554229233913531803576152 Content-Disposition: form-data; name="discount_type" percent -----------------------------8483554229233913531803576152 Content-Disposition: form-data; name="discount_value" 60.00 -----------------------------8483554229233913531803576152 Content-Disposition: form-data; name="coupon[expires]" 0000-00-00 -----------------------------8483554229233913531803576152 Content-Disposition: form-data; name="coupon[allowed_uses]" 0 -----------------------------8483554229233913531803576152 Content-Disposition: form-data; name="coupon[min_subtotal]" 0.00 -----------------------------8483554229233913531803576152 Content-Disposition: form-data; name="coupon[shipping]" 0 -----------------------------8483554229233913531803576152 Content-Disposition: form-data; name="coupon[free_shipping]" -----------------------------8483554229233913531803576152 Content-Disposition: form-data; name="coupon[coupon_id]" 9 -----------------------------8483554229233913531803576152 Content-Disposition: form-data; name="coupon[cart_order_id]" -----------------------------8483554229233913531803576152 Content-Disposition: form-data; name="product[]" -----------------------------8483554229233913531803576152 Content-Disposition: form-data; name="incexc" exclude -----------------------------8483554229233913531803576152 Content-Disposition: form-data; name="save" -----------------------------8483554229233913531803576152 Content-Disposition: form-data; name="previous-tab" #edit-coupon -----------------------------8483554229233913531803576152 Content-Disposition: form-data; name="token" a8ed2df937caf4385ddebe46d05359bf -----------------------------8483554229233913531803576152-- If that's wrong, I'm sorry. I'm trying.
  5. Is this what you're looking for? Does it tell you anything?
  6. I think that's the main problem. The name never shows up in the database or the promotional code page. Tried editing it. Tried adding new code. Same problem. Additional information. I haven't changed anything in Cubecart for over 2 years. When I add the code name manually to the database, it does show up in the admin section, but still gets error on checkout. After adding code to database manually, then go to the admin section and edit and save it, the name disappears in both places. It's as if the 'save' button sql is missing the 'name' field. But that doesn't explain why it doesn't work if I add it manually.
  7. Thanks for the detailed response. I made the changes, confirmed the files were changed, tried to check out and still getting the error. Do I have to restart something or ? The following errors were detected: Sorry, that code does not exist. Tried to add code. Code is called "superdeal" @ 60percent. Still doesn't show up. Database:
  8. Thank you. So, he saying replace this: preg_replace('/[^\w-_]/', '', $code) With: preg_replace("/[^a-z0-9_-]/i", '', $code) But he never says which file to change?
  9. Technical Details CubeCart Version 6.2.5 PHP Version (7.2 Recommended) 7.3.22 MySQL Version 10.1.40-MariaDB-cll-lve Image folder size Calculate Download folder size Calculate Max. Upload filesize 999M Browser user-agent Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.4 Lightning/5.4 Server Software Apache Hope this helps
  10. I have version 6 installed. Not sure how to find my exact version number. I have not updated since installed a few years ago. Coupon codes have been working fine, but haven't used them since July 2020. I created a new code. When I save it. everything looks ok except the actual name of the coupon code is missing. That field is blank. Checked the database and it was missing. I manually added it to the db and it showed up in the admin page properly. If I edit that code, to change the percentage for example and save it, the name disappears both in the coupon code page and the db. I tried changing a previous coupon code that used to work, but the same thing happened. Even after manually entering the code into the db, customers get the 'sorry, coupon code doesn't exist' error. Coupon is set to apply to all products. Did search the forums, but fixed didn't seem to apply to my version. Since nothing has changed on my part, I'm baffled as to why they don't work all of a sudden.
  11. Thank you so much for your quick reply! I did not request new currency exchange rates. But... in Admin, Currencies, I noticed that for the Australian dollar, it has an exchange rate of 1.41596, which is very close to the increase you noticed. Since this is going to Australia, that is probably the correlation. But, we've sold things to Australia before and this has never happened before. The Australian dollar uses the $ symbol, so that's why the $ symbol in the email? So, based on what you said, if the customer chooses their local currency in Cubecart, which is different than the store's default, this would happen like this? If that is correct, then this doesn't require a response from you. Thanks for clearing that up for me. I really appreciate it.
  12. Third order of the day. First two were fine. Received email showing the following prices, which aren't the correct prices shown on the actual order in Cubecart. I can't figure out what happened. Does anyone have any ideas? Cubecart order shows: 1 x Hallows Eve Key Necklace - $20.00 1 x Antiquity Necklace - $12.00 1 x Alice's Rose Pendant Key Necklace - $15.00 Email order shows: Hallows Eve Key Necklace 1 $28.32 Antiquity Necklace 1 $16.99 Alice's Rose Pendant Key Necklace 1 $21.24
  13. Thanks, Noodleman. The third method sound like it might limit future growth if we added yet another category that required different shipping fees. I'll check out the other suggestions you made within the next couple of weeks. Thanks for taking the time to follow up on this.
  14. My wife and I make unique handmade jewelry items. None of these weight more than 6-8 oz. So, we offer flat rate shipping both domestically and internationally. This has worked flawlessly for over 1.5 years now. We now have a new category of items, called DataPets. These weight more than any jewelry item, so we want to charge a different flat rate for this new category of items. Right now, the shipping cost of any DataPets is more than what we charge to ship jewelry items, so we're losing a small amount of money on each DataPet order. Pretty simple shipping calculations, thanks for asking. Open for any suggestions from a more experienced e-commerce person.
  15. Thanks, bsmither, I was worried about the interaction between the modules if I added another shipping module.
  • Create New...