Jump to content
Latest News: (loading..)

reflex-ocasion

Members
  • Content count

    71
  • Joined

  • Last visited

  • Days Won

    2

reflex-ocasion last won the day on January 3 2018

reflex-ocasion had the most liked content!

6 Followers

About reflex-ocasion

  • Birthday 07/23/1968

Profile Information

Recent Profile Visitors

12,453 profile views
  1. I imagine you need it INSIDE the drop-down menu, right? Right now I'm busy, I'm sorry, as soon as I can, I get to it.
  2. Something fast Edit catalog/includes/modules/boxes/bm_manufacturers.php Search lines 65, 66 and 67 $data = tep_draw_form('manufacturers', tep_href_link('index.php', '', $request_type, false), 'get') . tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, (isset($_GET['manufacturers_id']) ? $_GET['manufacturers_id'] : ''), 'onchange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '" style="width: 100%"') . tep_hide_session_id() . '</form>'; Add below $data .= '<a href="' . tep_href_link('allmanufacturers.php') . '">' . MODULE_BOXES_MANUFACTURER_BOX_ALLMANUFACTURERS . '</a>'; Add to language file catalog/includes/languages/english/modules/boxes/bm_manufacturers.php define('MODULE_BOXES_MANUFACTURER_BOX_ALLMANUFACTURERS', 'All Manufacturers'); It would be necessary to polish the code but as it is something quick... Best regards from Spain
  3. reflex-ocasion

    PayPal App for osCommerce Online Merchant

    @Harald Ponce de Leon I do not know if they have communicated it before, I have not read all the thread. When updating, new files are downloaded to the admin folder that does not exist because it is renamed for security. If during the installation of the store ask in which folder you want to install the admin, Why the module does not have it present? That would have to be modified by DIR_WS_ADMIN, which is where the name of the admin folder that each one indicated when installing the store appears. And in passing mention that you should ask during the installation of the store if the domain we have in http or https ("mandatory" by google) to install it in one way or another.
  4. reflex-ocasion

    RMA Returns System for osC2.3.4BS

    More errors. When creating a return from the admin there are two errors in the email that is sent to the client. Edit catalog/admin/return_create.php Search $email_link = tep_href_link('returns_track.php', '', 'SSL', false); Replace the part that says tep_href_link by tep_catalog_href_link Not making this change causes the email to leave the access path to our admin. In the same file search $email_text .= EMAIL_TEXT_RETURNS_THANKS . EMAIL_TEXT_RETURNS_SENT . EMAIL_TEXT_RETURNS_CLOSE . EMAIL_TEXT_RETURNS_CONTACT_OPEN . EMAIL_TEXT_RETURNS_WARNING; eliminate the part that says EMAIL_TEXT_RETURNS_CONTACT_OPEN, that definition does not exist anymore Do exactly the same in the file catalog/return_product.php I have not found more errors. That does not mean that there are not.
  5. 322.37 - 21% = 254.67 It is the same operation with taxes. To break down a percentage you do not subtract that percentage, it is divided. Neither is it multiplied nor do other subsequent operations, it simply divides. 322.37 subtotal / 1.21 tax = 266.42 322.37 - 266.42 = 55.95 322.37 subtotal / 1.40 discount = 230.26 322.37 - 230.26 = 92.11 332.27 total / 1.40 discount = 237.34 332.27 - 237.34 = 94.93 The tax module is the best proof that the discount module does not correctly apply the percentage. A fixed amount yes, the percentage does not. It does not matter if the discount is total or subtotal, the result should be 94 or 92 depending on whether it applies, not 128 as shown.
  6. If I add taxes to an amount, how do I break it down later? The tax module works perfectly, and with my mathematics. See second capture, the one from my store live and check. I repeat it here so I do not have to turn the page back. By that same rule of 3 the discount percentage must work the same and it does not. It does not matter if it is with the shipping included or not, it does not matter if it is with taxes included or not, the percentage that shows is not the correct one. You must show a percentage equal to that of taxes, if it is 21% then 21, if 40% then 40. What it does is that if it is 40% it shows 66.6666% Because the breakdown of taxes is correct while the breakdown of the discount is not? 266.42 + 21% = 322.37 is ok 203.32 + 40% = 284.65 NOT is ok. Nevertheless 203.32 + 65% = 335.48 which is more or less correct.
  7. reflex-ocasion

    Paypal duplicate orders

    @pete2007 I just duplicated the emails. I'm sorry if there has been any misunderstanding, at least on my part.
  8. I have done all kinds of tests. I have changed the order of the modules and I have even modified ot_discount changing, as indicated, subtotal by subtotal_ex which is the price without taxes. The result is always the same, an erroneous %. Sometimes it gives a quantity and sometimes it gives another quantity, but never the correct one. Show what the screen shows, no matter what order each module is in or what module the discount applies to, adding and subtracting all the quantities always gives an apparently correct result. I have never said that is wrong. What I'm saying is that the % shown is not the correct one. The discount can be applied to the subtotal or to the shipment, not to both. In that I agree because it is how the addon works and I see it very reasonable. The second image is from my live store and the discount is made to the total, not the subtotal. It is version 3.3 of this same addon and also gives an erroneous result. I have not modified anything, I have only translated it into Spanish. What I do not agree with is how the discount is made, specifically when I want to make a percentage discount. When it is a fixed amount there is no problem, the problem is, according to my suppliers and my accountant, when obtaining the %. Maybe my suppliers, my accountant and I are wrong and maybe not. In my old store 2.2rc2a I used another addon that got the % discount correctly. I will look for it and adapt it to BS edge, I will not continue discussing this issue further. It is very possible that part of the problem is that you can not explain correctly. It is one thing to get the % discount and another thing is to verify that it is correct by adding that same % that has been previously discounted. And I say add the %, do not add the amount obtained. If 180 I add 40% I get 252 instead of 300. If 180 I add 120 of course I get 300. Then 180 is not 40% discount of 300, is 66.6666%. I said, I will not continue discussing this issue further. I may be wrong and I may not be.
  9. reflex-ocasion

    Paypal duplicate orders

    standard_ipn It does not show the order number, so I deleted that part of that file. I have tried all possible combinations and it is the only one that works for me. It is more than likely that whoever uses other modules needs to do it the other way as I say, I will not discuss that. In Spain it is necessary to include the tax identification number of the client in the invoice that goes over 100 euros and for that I have to modify the module to include the field and to leave. With the other payment modules is not necessary, only with PayPal. Based on that, I can not just replace an old file with a new one of an update. I have to compare both files and add in the new what is in the old (not all, obviously), that's why there are two files that send emails, before there was only one and it was paypal_standard.
  10. No matter what order you put it in, the result is always the same, at least in the test store because in the live right now I do not know. In the live store I have many more options and so you see the discount is done to the total amount, with taxes and shipping included. Calculator in hand what we see on the screen is correct. If we go deeper and try to obtain the discount percentage that has been applied, the result is no longer the same, it is wrong, it makes more discount than it should really do. You say it's okay and I disagree. Let's leave it there, let's not continue the discussion because it's like the example that I put before the leftover that appears by magic.
  11. Ok, ok, sorry I just wanted to clarify that there are different points of view on the application of the discount percentage.
  12. I do not know why the comment has been repeated. Does not matter. To each of my parents I return 1 and then I return the remaining 49. 50 of my father + 50 of my mother = 100 100 - 97 = 3 (1 for my father, 1 for my mother and 1 for me) First I return 1 and then I return 49 = 50 x 2 (50 for my father and 50 for my mother) = 100 It is not explained where the 1 that I left the return of the purchase of the shirt. I have returned all borrowed money and still spare me 1. The mathematics is not exact as you can see. That is the question.
  13. @BrockleyJohn I doubt that the system will be able to distinguish between the cost price and the sale price. I can earn more from a product because it has little demand, while I can earn less from another product because it has a lot of demand and there is a lot of competition. To do what he says he would have to create a code for some products and another code for other products. The problem is that someone buys a product from each group, you can only use a discount code, not both. The other option is to create a general code for all products and this is where I say that the discount percentage is not applied correctly. Have you checked my mathematics with a calculator? I am going to put a mathematical problem without a solution, I do not know how it will be translated... I want to buy a shirt that costs 97. I do not have the money and I borrow it from my father (50) and my mother (50). I buy the shirt and I have 3. 1 for my father, 1 for my mother and 1 for me. Up to here all right, right? now the impossible. Since I have returned 1 to each one I still owe 49 to each one. 49 + 1 = 50 x 2 = 100 Where does 1 come from that was for me? I doubt that the system will be able to distinguish between the cost price and the sale price. I can earn more from a product because it has little demand, while I can earn less from another product because it has a lot of demand and there is a lot of competition. To do what he says he would have to create a code for some products and another code for other products. The problem is that someone buys a product from each group, you can only use a discount code, not both. The other option is to create a general code for all products and this is where I say that the discount percentage is not applied correctly. Have you checked my mathematics with a calculator? I am going to put a mathematical problem without a solution, I do not know how it will be translated. I want to buy a shirt that costs 97. I do not have the money and I borrow it from my father (50) and my mother (50). I buy the shirt and I have 3. 1 for my father, 1 for my mother and 1 for me. Up to here all right, right? now the impossible. Since I have returned 1 to each one I still owe 49 to each one. Where does 1 come from that was for me? I doubt that the system will be able to distinguish between the cost price and the sale price. I can earn more from a product because it has little demand, while I can earn less from another product because it has a lot of demand and there is a lot of competition. To do what he says he would have to create a code for some products and another code for other products. The problem is that someone buys a product from each group, you can only use a discount code, not both. The other option is to create a general code for all products and this is where I say that the discount percentage is not applied correctly. Have you checked my mathematics with a calculator? I am going to put a mathematical problem without a solution, I do not know how it will be translated. I want to buy a shirt that costs 97. I do not have the money and I borrow it from my father (50) and my mother (50). I buy the shirt and I have 3. 1 for my father, 1 for my mother and 1 for me. Up to here all right, right? now the impossible. Since I have returned 1 to each one I still owe 49 to each one. 49 + 1 = 50 x 2 = 100 Where does 1 come from that was for me? The mathematics is not exact as you can see.
  14. reflex-ocasion

    Paypal duplicate orders

    I have always used PayPal Standard, no other version. There are two files that send emails, catalog/includes/modules/payment/paypal_standard.php and catalog/ext/modules/payment/paypal/standard_ipn.php. There are no more files that send emails. At first I received the duplicate emails until I commented the whole block in the second file. Since then I have not received a duplicate email again and this has been more than a year. The first file shows the order number in the email. The second file does not show it, that's why I commented it. Seach in catalog/ext/modules/payment/paypal/standard_ipn.php from // lets start with the email confirmation $email_order = STORE_NAME . "\n" . Until // send emails to other people if (SEND_EXTRA_ORDER_EMAILS_TO != '') { tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } and comment or delete everything This works for me, I do not receive duplicate emails since I did it. I hope that helps.
  15. @kevindownie If you create several codes of different discounts, will they all come out so you can choose one at random? no, that's why the code is not shown, no code. It is also for security because you can create a code for a specific client and if it was shown, any client could use it. I have a variable that says that I enter a particular code when I want all my clients to use it. When it is not the case it does not say anything, it is shown as it comes by default. If someone is interested I can publish the necessary code here, but it is for an earlier version, for the new one it would have to be adapted.
×