Jump to content
Latest News: (loading..)

milerwan

Members
  • Content count

    222
  • Joined

  • Last visited

  • Days Won

    6

milerwan last won the day on May 20 2017

milerwan had the most liked content!

1 Follower

About milerwan

  • Rank
    Osc fan
  • Birthday 12/14/1976

Profile Information

Recent Profile Visitors

10,172 profile views
  1. I pay "activation codes" to a provider so I get limited quantities each time. For me, since it is non-material product it fits into the directive of dematerialized goods. What do you think ?
  2. @MrPhil, @14steve14, The reason I dispatch "activation codes" for a software which are unique and available in limited number.
  3. It's ok, need to go in checkout_process.php en find this : // do not decrement quantities if products_attributes_filename exists if ((DOWNLOAD_ENABLED != 'true') || (!$stock_values['products_attributes_filename'])) { $stock_left = $stock_values['products_quantity'] - $order->products[$i]['qty']; } else { $stock_left = $stock_values['products_quantity']; } And uncomment like this : // do not decrement quantities if products_attributes_filename exists // add stock stock decrease for virtual product bof // if ((DOWNLOAD_ENABLED != 'true') || (!$stock_values['products_attributes_filename'])) { // add stock stock decrease for virtual product eof $stock_left = $stock_values['products_quantity'] - $order->products[$i]['qty']; // add stock stock decrease for virtual product bof // } else { // $stock_left = $stock_values['products_quantity']; // } // add stock stock decrease for virtual product eof
  4. About Downloadable products, I realize that my downloadable product stocks are not going down despite orders (!?!)The stock does not empty, damn. In my case, it is activation codes that I have but in limited numbers. Where can I find the code to add decrease of stock in the case of a virtual product sale ?
  5. Hi Phil, Take a look on my website and you will see that all is clear from product_info page or shopping_cart : https://www.infinitydream.com The only download product I have is this one, you could test with it : https://www.infinitydream.com/xecuter-sx-os-n-switch-p-1449.html
  6. It's ok in my payment module I have this that blocks the script in case of virtual product : // disable the module if the order only contains virtual products if ( ($this->enabled == true) && ($order->content_type == 'virtual') ) { $this->enabled = false;
  7. Hi,

    Could you provide me the link to your website to see how does it happen please ?

    Thank you. :smile:

     

    PS: You could find the only dowload product I offer from this link : https://www.infinitydream.com/xecuter-sx-os-n-switch-p-1449.html

    1. milerwan

      milerwan

      It's ok in my payment module I have this that block the script in case of virtual product :
       

      Quote

            // disable the module if the order only contains virtual products
            if ( ($this->enabled == true) && ($order->content_type == 'virtual') ) {
              $this->enabled = false;

       

  8. Sorry, both same issue when customer's country is different than shop country, only credit card available.
  9. @inra311@inra311, I'have just see that, for payment method, only "Credit Card" is available when I have only dematerialized product(s) in my order but If I add normal product, I could choose other(s) payment(s) (if set in admin with zone classes of course). I don't understand why just Credit Card is available and not another payment method ? Is there a configuration to allow different payment modules for download products because I don't see how to set if ?!? Thank you. PS: That's strange, in local I have all the payments shown but in the online shop only Credit Card for download products ?!?
  10. @inra311, Your example seems the regular way. ^^ With mine, in case of cancel (but I had not thought of this eventuality because once the link is available it is often too late to go back), need order_editor to delete the "download" status.
  11. @inra311, I saw that to validate the access to the download for the customer it was necessary that the status of the order stay "fixed" on the predefined status that authorize the download... This is too restrictive because if I want to change the status of the command later, access to the download disappears. I modified the query for the download appears and remains accessible on customer side (account_history_info.php) as long as the download status was part of the orders_status_history list. Here is the modification to apply to reach this result. In includes/modules/dowloads.php, find/change like this: // Now get all downloadable products in that order // $downloads_query = tep_db_query("select date_format(o.date_purchased, '%Y-%m-%d') as date_purchased_day, opd.download_maxdays, op.products_name, opd.orders_products_download_id, opd.orders_products_filename, opd.download_count, opd.download_maxdays from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_PRODUCTS . " op, " . TABLE_ORDERS_PRODUCTS_DOWNLOAD . " opd, " . TABLE_ORDERS_STATUS . " os where o.customers_id = '" . (int)$customer_id . "' and o.orders_id = '" . (int)$last_order . "' and o.orders_id = op.orders_id and op.orders_products_id = opd.orders_products_id and opd.orders_products_filename != '' and o.orders_status = os.orders_status_id and os.downloads_flag = '1' and os.language_id = '" . (int)$languages_id . "'"); $downloads_query = tep_db_query("select distinct date_format(o.date_purchased, '%Y-%m-%d') as date_purchased_day, opd.download_maxdays, op.products_name, opd.orders_products_download_id, opd.orders_products_filename, opd.download_count, opd.download_maxdays from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_PRODUCTS . " op, " . TABLE_ORDERS_PRODUCTS_DOWNLOAD . " opd, " . TABLE_ORDERS_STATUS . " os, " . TABLE_ORDERS_STATUS_HISTORY . " osh where o.customers_id = '" . (int)$customer_id . "' and o.orders_id = '" . (int)$last_order . "' and o.orders_id = op.orders_id and o.orders_id = osh.orders_id and op.orders_products_id = opd.orders_products_id and opd.orders_products_filename != '' and osh.orders_status_id = os.orders_status_id and os.downloads_flag = '1' and os.language_id = '" . (int)$languages_id . "'");
  12. With this "attibute" for download/virtual item, there is no more shipping address taken into account, only billing address in that case.
  13. @inra311 Wahoo, I admit that I discover something there ! Thank you very much !!!
  14. @14steve14, @inra311, in includes/classes/order.php, I see that there is a content_type value that could be "virtual" and modify the tax_address : if ($this->content_type == 'virtual') { $tax_address = array('entry_country_id' => $billing_address['entry_country_id'], 'entry_zone_id' => $billing_address['entry_zone_id']); } else { $tax_address = array('entry_country_id' => $shipping_address['entry_country_id'], 'entry_zone_id' => $shipping_address['entry_zone_id']); } Where can we found this "content_type" value ?!? Like for download access, how could we do to make a product a download item ?!? I would like to be able to differentiate "download/virtual" products other than by their tax class. Thank you.
  15. @inra311, @MrPhil, So I read the directive, the provider (seller) must check the purchase information in his possession and establish at least 2 "non-contradictory" elements of proofs to locate the buyer and validate his purchase. For example, customer's IP address and his shopping habits (if usual customer), or billing address entered... It promises to be happy this story.
×