ეს პლაგინი არ დატესტილა WordPress-ის 3 ძირითად ვერსიაზე. როგორც ჩანს, ის უკვე აღარ არის მხარდაჭერილი და შესაძლოა არ იყოს თავსებადი WordPress-ის მიმდინარე ვერსიასთან.

Disable Downloadable Repeat Purchase – WooCommerce

აღწერა

This WooCommerce plugin prevents a user from being able to purchase a downloadable product that they already own, as long as they are eligable to download that product. In place of the “Add to Basket” button on the product page, a message will display informing the user they already own the item, and links to download the linked files are provided there. Those links are the special links to the file that are provided on the “My Downloads” page, or part of the “My Account” page.

If the user has had a refund for the item, or if they have used up all of their allowed download (when product has a limited number of downloads) then the normal “Add to Basket” button will show again, allowing purchase.

On any page that displays the products other than the single product page, the button shows as “Read More”, as though the product is not available.

ეკრანული სურათები

  • The disabled message with default WooCommerce styles
  • How it appears with Storefront theme

დაყენება

Just install the plugin as normal and activate it. Nothing else required.

ხდკ

How does it work?

The plugin file adds 2 functions that hook into WooCommerce using add_filter on ‘woocommerce_is_purchasable’, and ‘woocommerce_single_product_summary’.

It uses div tags, including

<

div class=”woocommerce-info wc-nonpurchasable-message”>, which means it should be styled in conjunction with any WooCommerce theme. Tested on Storefront.

მიმოხილვები

1 რევიუს წაკითხვა

მონაწილეები & დეველოპერები

“Disable Downloadable Repeat Purchase – WooCommerce” ღია პროგრამული უზრუნველყოფაა. შემდეგმა ადამიანებმა წვილი შეიტანეს მის განვითარებაში.

მონაწილეები

გადათარგმნეთ Disable Downloadable Repeat Purchase – WooCommerce თქვენს ენაზე.

დაინტერესებული ხართ დეველოპმენტით?

დაათვალიერეთ კოდი, შეამოწმეთ SVN რეპო, ან გამოიწერეთ შექმნის ჟურნალი : RSS.

ცვლილებები

1.0

  • Initial release