Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

cDGo IT Consultancy

Members
  • Posts

    133
  • Joined

  • Last visited

Everything posted by cDGo IT Consultancy

  1. Hi, I'm trying to reset the given discount code once the customer has added it. I've tried to unset the session variable sess_discount_code by ajax, but the order total module of ot_discount still shows the discount. Any help is appreciated.
  2. What worked for me: In modules/payment/paypal_standard.php Replace this: Line 184 - 187 function confirmation() { global $cartID, $cart_PayPal_Standard_ID, $customer_id, $language, $languages_id, $order, $order_total_modules, $sendto, $billto, $shipping; if (tep_session_is_registered('cartID')) { With this And be ware of the 2 additional global variables! These are in use in my webshop, and I'm not sure if they are available in the vanilla installation And use you're own title text as this might also not be vanilla. function confirmation() { return array('title' => MODULE_PAYMENT_PAYPAL_STANDARD_TEXT_PUBLIC_TITLE); } function process_button() { global $cartID, $cart_PayPal_Standard_ID, $customer_id, $language, $languages_id, $order, $order_total_modules, $sendto, $billto, $shipping ,$currency, $paypal_fee; if (tep_session_is_registered('cartID')) { And remove these lines: Line 407 - 412 return false; } function process_button() { global $language, $customer_id, $order, $sendto, $currency, $cart_PayPal_Standard_ID, $shipping, $order_total_modules, $paypal_fee; My shop is very heavilly customized, so use at your own risk. All suggestions to further improve are welcome!
  3. Hi, At the moment the official Paypal App v5.018 (Paypal Standard) module creates an order when landing oin the checkout_confirmation.php page instead of after the customer confirms the order on this page like all other payment modules. Is there a step by step instruction how to change this behavior? Problem is that most often customers only want to check the totals on the confirmation page (like shipping and payment fees) and than go back to order more products or product quantities. The shopping cart already shows these fees, but they do tend to act this way, leaving us with multiple orders. The customer emails or calls in panic, that they only want "one".
  4. Hi Lee, I'm trying to get the same done here. Did you made any progress? Domé
  5. This is just a simplified version, but install the plugin as supposed and than add this: After: if (isset($_POST['action']) && ($_POST['action'] == 'process') && isset($_POST['formid']) && ($_POST['formid'] == $sessiontoken)) { $process = true; Add: if (MODULE_FOOTER_MAILCHIMP_STATUS == 'True' && isset($_POST['newsletter']) && $_POST['newsletter'] == 1) { include('ext/api/mailchimp_v3/MailChimp.php'); $key = [your api key]; $list_id = [your email list id]; $array = array('email_address' => $_POST['email_address'], 'merge_fields' => array('FNAME' => $_POST['firstname'], 'LNAME' => $_POST['lastname']), 'status' => 'subscribed'); $MailChimp = new MailChimp($key); $result = $MailChimp->post('/lists/' . $list_id . '/members', $array); } Replace [your api key] with your api key like '123456789' [your email list id] with your email list id like '98765'
  6. This is a nice addon, thank you for sharing. The SEO section isn't divided into the languages, all fields for both Dutch and English (in my situation) are on the same page. Fix: Find: <?php for ($i=0, $n=sizeof($languages); $i<$n; $i++) { echo '<li><a href="' . substr(tep_href_link('categories.php', tep_get_all_get_params()), strlen($base_url)) . '#section_general_content_' . $languages[$i]['directory'] . '">' . $languages[$i]['name'] . '</a></li>'; } ?> and replace the word section_general_content for section_seo_content. So it will read like this: echo '<li><a href="' . substr(tep_href_link('categories.php', tep_get_all_get_params()), strlen($base_url)) . '#section_seo_content_' . $languages[$i]['directory'] . '">' . $languages[$i]['name'] . '</a></li>';
  7. After stripping down everything, but this attribute form, it now shows the index.php/dashboard. So it must be in this contribution it self where there's a capture of the data.
  8. Hi Raiwa, Thanks for the update. I Always used this contribution in my 2.2 shops, but in the 2.3.4BS version, it shows me the full admin page including menubar of the edited product instead of the attribut set form. Just to rule out influence of other contributions, I've also tested it with the basic (clean) 2.3.4BS version of categories.php which just gives the same issue. Any ideas?
  9. Maybe it's been asked before, but reading through 175 pages is just a bit too time consuming. I found this issue when using product options. when I got an url like product_info.php?products_id=13{1}11 it will not be rewriten to the products friendly name/url nor will it preselect the chosen options in the products options list. Anyone have a suggestion why at least the friendly name wasn't used? BTW: If you remove the options part, it will rewrite the url to the friendly name, but ofcourse will noet pre selct the options value
  10. Not sure why I can't add this to the Original addon, but just a little adaption for PHP 7.2 and Dutch language files oscom-product-sort-within-category-bs-php72.zip
  11. Allready did that, but just wondering why it wasn't done in the addon it self.
  12. Hi, Just out of curiosity..... Why not integrate mailchimp API in the create_account.php? Why would you have your anonymus visitors on mailchimp, and registered customers in osCommerce?
  13. Is there a way to add files outside of the admin root? I've added AJAX Attribute Manager (#4063) but all files are in their own (sub)folder. Or should I enter all sperate files in the database?
  14. Lildog, You're right, that's just what I meant. I've got over 150 contribs running in my shops. So eager to help you with testing!!!!!!!!!!!!!!!!!!!!! :lol: :thumbsup:
  15. Hi lilboy, Thanks for replying. The thing is that I'm talking about contribs from the past. Lets say in contrib installed last in 2005 and has an update in 2006. What I now understand is that your contrib only works for updates that are now spread thrue the rss feeds. As the update of 2006 won't be spread through the rss feed, your contrib will not alert me for that update.
  16. Hi lildog, Will it work for older contributions to? I installed the contribution and added a contribution, I'm using, which I know has a newer version. But yr contribution, doesn't seem to "see it". Or does it only recognize new aditions when there are updated afteryr contribution is installed, and the contribution is scheduled to run each day with a cron job? A bit more information how it works would be great.....
  17. Anyone already succeeded with useing movies/video's? I've seen it work here : http://digg.com/videos/ but still not found out how it's done.
  18. Sounds like a great contribution, but all I got is a white place holder, and nothing more :'( Anything special needed on the webserver?
  19. Found the problem. In the installation instructions : j. catalog\admin\categories.php Step 7 after the installation of this contribution search for : $var_detete_image = "delete_image".$nb; and replace for : $var_delete_image = "delete_image".$nb;
  20. When installing step 10, images can't be deleted anymore. But without step 10 images aren't saved to the database. Anyone knows how to solve this? Or, could someone place his working catalog\admin\categories.php file here?
  21. Hi edtiger, Great contrib. Altough some small thing goes wrong. The function attributes_setup_price needs to be placed in the general.php for me to have it working. Step xx : catalog/includes/functions/general.php Add this : function attributes_setup_price($products_id) { $attributes_setup_price = 0; if (isset($this->contents[$products_id]['attributes'])) { reset($this->contents[$products_id]['attributes']); while (list($option, $value) = each($this->contents[$products_id]['attributes'])) { $attribute_setup_price_query = tep_db_query("select options_values_price, price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES . " where products_id = '" . (int)$products_id . "' and options_id = '" . (int)$option . "' and options_values_id = '" . (int)$value . "'"); $attribute_setup_price = tep_db_fetch_array($attribute_setup_price_query); if ($attribute_setup_price['price_prefix'] == '+') { } else if ($attribute_setup_price['price_prefix'] == '#') { $attributes_setup_price += $attribute_setup_price['options_values_price']; } else { } } } return $attributes_setup_price; } //eof ///////////////////////////////// And when you add a product in the cart, the subtotal price is good, but the product price is actual price minus (-) the setup fee so instead of ie 100 + 10 it makes it 100 - 10. I haven't found the right place to look for it yet. So you might have a hint for me? Than I was wondering this. Could this contrib be adjusted, to not only charge the setup fee per product, but also per product group. So lets say when I buy 3 product from my supplier at x amout order fee. I want to charge my customer the order fee only once when they order either one on more of these 3 products? I've got MVS installed, so there's an Vendor known per product, also there's a order fee field in the MVS tabel. Now there only needs to be checked wether there are more products order from the same supplier. And as I'm not that good with PHP, I can't get this thing on the road, so a little help would be wonderfull. Thanks in advance, Dom?
  22. Edtiger, I was wondering, could this contribution also be used for a setup fee per Product group? so not only charging the setup fee fr one product only, but for a group of products from the same manufacturer or vendor?
  23. Hi, I'm still having troubles with the right calculation of the tax. This is what I now got : // Calculate tax group deductions $ratio1 = $f_deduct/$this->get_order_total(); $tod_amount = 0; reset($order->info['tax_groups']); while (list($key, $value) = each($order->info['tax_groups'])) { $god_amount = 0; $tax_rate = tep_get_tax_rate_from_desc($key); $net = $tax_rate * $order->info['tax_groups'][$key]; if ($net>0) { $ratio1 = ($tax_rate*$od_amount)/100; $god_amount = $ratio1; $tod_amount += $god_amount; $order->info['tax_groups'][$key] = $order->info['tax_groups'][$key] - $god_amount; } } } $od_amount = (round($amount*10)/10)*$od_pc/100; $order->info['tax'] -= $tod_amount; $order->info['total'] -= $tod_amount; $od_amount = $od_amount + $tod_amount; } return $od_amount; But it still calculates the tax amount over the whole subtotal and shippingcosts together. Instead of the subtotal - customer discount amount. Could someone point me in the right direction? Regards, Dom?
  24. Mibble : i guess you didnt understand what i said. currently the products_price field is defined as decimal 15,4 and you will have to define it differently Hi, I've looked at it in the database, but I don't get it what to change. You're right with the present setting of 15,4. But what do I need to change to have my shop use the , instead of the . for ? 30.00?
×
×
  • Create New...