Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.


  • Content count

  • Joined

  • Last visited

  • Days Won


Everything posted by Tsimi

  1. I am currently working on a Points and Rewards system for osC BS GOLD and EDGE. There are currently 2 addons out there that are more or less working if you take bits and pieces from each one of them. I have currently installed the Points and Rewards feature into an Edge test shop and all seems to work fine. The idea of such points system is interesting but unfortunately it is one of those addons that require a lot core file changes or better let's say code additions. There are more ADD AFTER than REPLACE WITH parts. I have managed to reduce the install steps by implementing some stuff into the module and new additional files. More improvement is possible I know it but first I want to get it working before going deeper into it. I still need to make the necessary Bootstrap design changes to some of the new files and then it's time for bug hunting. I was wondering did someone ever create one for BS? Or did anyone ever attempt to make one for BS? No need to recreate everything again if it has already been done. As soon I have all the design stuff fixed I will add a beta package here.
  2. Tsimi

    Option Types BS

    This is the support thread for the Option Types BS App. I wanted to keep this separated from the other, normal Option Types support thread. New version uploaded. Now compatible with the latest and greatest osC CE Frozen Download is here: https://apps.oscommerce.com/SOFpK&option-types-bs
  3. I found a possible bug when using PayPal Express v3.1 and Free Shipping. I tried various shipping modules and stock osC shop and non stock osC shop, same issue all over. To recreate this issue please follow the instructions below. This might get a bit long or complicated so bare with me. First access your admin area and go to your Order Total modules. There click on the ot_shipping.php module and apply the following settings. Allow Free Shipping: true Free Shipping For Orders Over: $82 Provide Free Shipping For Orders Made: both Make sure the flat rate shipping module is set to true and an amount of $5. Also setup the PayPal Express module. (Doesn't matter if it is live or sandbox mode you won't need to go through the whole checkout anyway.) Now go to the front end and add 1x "Die Hard With A Vengeance" to your shopping cart. Proceed to the checkout (No matter which button, PP or osC one.) and continue until you see the PayPal screen. (No need to login...) At this point you should see the listed item with shipping charges and all is fine and correctly calculated. Now cancel the procedure by clicking on the "Cancel and return to...." link. Now you should be back at the shopping_cart.php page. Change the quantity to 2 and update the cart. You should now have a sub-total amount of $79.98 (still $2.02 short of getting free shipping!) Now click on the checkout button (here again no matter which one) and you should now see a Free Shipping message or if you clicked the PP button you should be at the PP page. And if you continue with the normal checkout and reach the PP Page again you will see only the items listed without any shipping charged. Even though you have not reached the $82 yet to qualify for free shipping. My guess is that it calculates the order total including shipping cost and therefore it shows the Free Shipping message even if you haven't reached a sub-total of $82. So now I'll go bug hunting.... UPDATE INFO: Another way is to add the Die Hard DVD to the cart update the quantity to 2 and click on the PP checkout button. Then at the PP Page abort the checkout. Now back at the shopping cart page click on the normal osC checkout button and you should see again the Free Shipping message. (Here again, sub-total is $79.98 and you should not qualify for free shipping!)
  4. This is the support topic for the Advanced Specials Addon. http://addons.oscommerce.com/info/8294 Anything is just post here. Enjoy!
  5. I was testing the PayPal Express payment module and encountered some issues when using German language address or names or product names with special characters in it. These encoding issues have been fix by the community but they are spread around in multiple topics so I thought it might be helpful for others to have all fixes in one place. PayPal Account Setting Go to "My Account" -> "Profile" -> "My selling tools" -> "PayPal button language encoding" Then setup Your website's language: Western European Languages (including English) click the "more options" button and set Encoding to UTF-8. Below where it says "Do you want to use the same encoding for data sent from PayPal to you (e.g., IPN, downloadable logs, emails)?" tick the "Yes" checkbox. Click "Save" and logout of your PayPal account. Gergely added nice images that explain it visually how to do it. http://forums.oscommerce.com/topic/397700-utf-8-in-payments-standard/?p=1702922 Encoding fix This fix is by courtesy of @@raiwa he gave the key to the solution posted then later by @@HansTatt. Thanks guys! :thumbsup: Inside the ext/modules/payment/paypal/express.php file look for this code $item_params['L_PAYMENTREQUEST_0_NAME' . $line_item_no] = $product['name']; and replace with $item_params['L_PAYMENTREQUEST_0_NAME' . $line_item_no] = utf8_decode($product['name']); then look for this code $params['PAYMENTREQUEST_0_SHIPTONAME'] = $order->delivery['firstname'] . ' ' . $order->delivery['lastname']; $params['PAYMENTREQUEST_0_SHIPTOSTREET'] = $order->delivery['street_address']; $params['PAYMENTREQUEST_0_SHIPTOCITY'] = $order->delivery['city']; $params['PAYMENTREQUEST_0_SHIPTOSTATE'] = tep_get_zone_code($order->delivery['country']['id'], $order->delivery['zone_id'], $order->delivery['state']); $params['PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE'] = $order->delivery['country']['iso_code_2']; $params['PAYMENTREQUEST_0_SHIPTOZIP'] = $order->delivery['postcode']; and replace with this $params['PAYMENTREQUEST_0_SHIPTONAME'] = utf8_decode($order->delivery['firstname']) . ' ' . utf8_decode($order->delivery['lastname']); $params['PAYMENTREQUEST_0_SHIPTOSTREET'] = utf8_decode($order->delivery['street_address']); $params['PAYMENTREQUEST_0_SHIPTOCITY'] = utf8_decode($order->delivery['city']); $params['PAYMENTREQUEST_0_SHIPTOSTATE'] = tep_get_zone_code($order->delivery['country']['id'], $order->delivery['zone_id'], $order->delivery['state']); $params['PAYMENTREQUEST_0_SHIPTOCOUNTRYCODE'] = $order->delivery['country']['iso_code_2']; $params['PAYMENTREQUEST_0_SHIPTOZIP'] = $order->delivery['postcode']; Reference Topic: http://forums.oscommerce.com/topic/397165-paypal-standard-not-emptying-basket/?p=1714514 That's it.
  6. @tttim6575 I highly doubt you'll get an answer here from the previous people. This is an old topic with the last answer dating back to 2012. There are however 2 config files. catalog/includes/config.php (front store side) catalog/admin/includes/config.php (admin side)
  7. Tsimi

    Payment fee

    @Shoppertroppen Download the zip package from my post here.
  8. Tsimi

    Custom Product Builder of OSc BS

    @LeeFoster Sorry for chiming in late. Wasn't there an issue about product stock not being subtracted?
  9. Tsimi

    horizontal megamenu

    @odracirjf No need to download and use the EDGE version. Frozen is just fine. Read the post about the php 7.2 error in the following thread. You can either use my solution or the one offered by raiwa. https://forums.oscommerce.com/topic/408478-horizontal-categories-menu-bs/?page=12
  10. Tsimi

    Option Types BS

    I believe that is correct. Not 100% sure though.
  11. Tsimi

    Option Types BS

    No, it does not. You might wanna take a look at @raiwa 's website.
  12. Thanks @raiwa The error has been corrected I think. I had something mixed up with the data inside the database and the data shown in the shop. I emptied the database table and now the error is gone and I cannot recreate it either. 🤔 So the only code that needs fixing to be PHP 7.2 compatible is the code fix Omar posted above. Thanks again for looking into it.
  13. Thanks @Omar_one That took care of one of the errors. Now only one error is left Warning: Invalid argument supplied for foreach() in /home/xxx/www/shop/xxx/includes/classes/object_info.php on line 21 Must have something to do with this code here I guess (around line 455) if ((!isset($_GET['uID']) || (isset($_GET['uID']) && ($_GET['uID'] == $pending_points['unique_id']))) && !isset($uInfo)) { $uInfo = new objectInfo($uInfo_array); } I tried to copy code structures from other file which also have the objectInfo code in it but none of my tries worked thus far.
  14. @raiwa Have you looked at this add-on with PHP 7.2 recently? I get these errors and I know why it happens but I could not find a fix for it. customers_points_referral.php file PHP 5.6 and 7.1 Warning: Invalid argument supplied for foreach() in /home/xxx/www/shop/xxx/includes/classes/object_info.php on line 21 PHP 7.2 Warning: Invalid argument supplied for foreach() in /home/xxx/www/shop/xxx/includes/classes/object_info.php on line 21 Warning: sizeof(): Parameter must be an array or an object that implements Countable in /home/xxx/www/shop/xxx/customers_points_referral.php on line 451 All the other points related pages work just fine even with PHP 7.2
  15. @raiwa Man I am glad to hear/read that. What a great timing. Thanks
  16. @raiwa Do you have this app running on PHP 7.2?
  17. Tsimi

    FAQ's BS

    That did the trick. Thanks for the quick support. Change mine to this echo tep_draw_button(IMAGE_DELETE); echo tep_draw_button(IMAGE_CANCEL, NULL, tep_href_link('faq_manager.php', '', 'NONSSL')); Something else, isn't this following line echo tep_draw_form('faq_manager','faq_manager.php', 'faq_action=DelSure&faq_id='.$val[faq_id]); suppose to look like this? echo tep_draw_form('faq_manager','faq_manager.php', 'faq_action=DelSure&faq_id='.$faq_id); When I look at the form using "Inspect Element" on my Firefox browser the faq_id= within the form is empty but when I change the line from faq_id='.$val[faq_id] to faq_id='.$faq_id the id is passed on and shows fine. However no matter which one I use the FAQ gets deleted correctly so not sure if it is a major issue.
  18. Tsimi

    FAQ's BS

    Thanks for your reply Jack. The URL does have the "faq_action=Delete" in it. (.../admin/faq_manager.php?faq_action=Delete&faq_id=3) Once I click on the X in the listing page I get redirected to the "Delete confirmation" page where the title says for example "Delete Confirmation FAQ ID= 3" Then on that page when I click the X again I get redirected back to the listing page (faq_manager.php) and the entry, in my example ID=3, is still there. Running PHP 5.6.31 at the moment. I did however get 2 error messages after the initial install. I fixed those by removing the $_GET variables from the lines mentioned in the error messages.
  19. Tsimi

    FAQ's BS

    Hi Jack I had a look at this FAQ app of yours and I got all up and running thus far. I have no issues adding or editing Questions/Answers in the admin area except for the delete function. I cannot delete any of the created Questions/Answers. Running this in an Edge test shop.
  20. Tsimi

    Product listing

    You can keep the code in there. It shouldn't matter if you use later the horizontal menu or not.
  21. Tsimi

    Product listing

    @ce7 Open your ..includes/classes/category_tree.php file FIND: if ( ($this->follow_cpath === true) && in_array($category_id, $this->cpath_array) ) { $link_title = $this->cpath_start_string . $category['name'] . $this->cpath_end_string; } else { $link_title = $category['name']; } REPLACE WITH: if ( ($this->follow_cpath === true) && in_array($category_id, $this->cpath_array) ) { $link_title = $this->cpath_start_string . tep_image('images/' . $category['image'], $category['name'], SMALL_IMAGE_WIDTH*0.5, SMALL_IMAGE_HEIGHT*0.5, 'style="display:inline-block;"') . ' ' . $category['name'] . $this->cpath_end_string; } else { $link_title = tep_image('images/' . $category['image'], $category['name'], SMALL_IMAGE_WIDTH*0.5, SMALL_IMAGE_HEIGHT*0.5, 'style="display:inline-block;"') . ' ' . $category['name']; }
  22. Tsimi

    [Contribution] Option Types v2

    That was like that from the very beginning it has nothing to do with BS or add-on version. The person who coded it, Zappo, mentioned something like this in the past that only one checkbox value can be passed on to the cart.
  23. Tsimi

    [Contribution] Option Types v2

    If you need only one selection then why not use radio buttons instead?