![]() ![]() The name came from an internal team joke during the dev phase, then we decided to leave it. This module is not strongly Drupal Commerce related, but we designed it because we needed for our Drupal Commerce projects. Like anything else in programming there are many different approaches, but to me this seems like the most straightforward. In this post I will share with you how I implemented this feature. By default, Commerce 2.x doesn't support this, but adding it is so easy. One of the requirements in one of our recent Drupal Commerce 2.x project was that each product should have a sale price field. But in some cases these conditions are not good enough for restricting shipping methods.Īnother useful tutorial on how to set up the sale price, you can read here: Drupal Commerce 2.x and sale price ![]() Read a blog post Drupal Commerce 2.x and shipping conditions, you can read the step-by-step guide and download a sample module from this link above.īy default Drupal Commerce 2.x and Commerce Shipping modules come with two nice conditions Limit by total price and Limit by shipment weight. In this blog post, I will try to write a summary of things we did do and use in our Drupal Commerce projects and I will also make a teaser of new things coming out from our kitchen.īefore we start, I just want to say big thanks for the whole Studio Present team, because everybody added something to make it happened. But we love challenges, and we decided to give back as much as we can for the community. We realized almost on the first day, that it will be a challenge and we need to figure out many things what we were used in Drupal 7 in routine. In 2017 we started to implement our first e-commerce stores in Drupal 8. We'll be providing a full developer overview as soon as possible.This is how we support the Drupal community The API documentation is currently inline and in commerce_. If you use it as a starting point for your shipping method module, you should copy it to a new folder and rename it so you can continue to update Commerce Shipping 2.x as new releases are created. It demonstrates how to define a shipping method and how to collect additional information from the user on the checkout form. Developer documentationĭocumentation for developers can be found in the example module included in the project. If you know of a shipping method module that isn't listed here, please let us know in an issue. Some require API credentials to retrieve calculated rates from shipping carriers, like UPS and USPS, while modules like Flat Rate simply let you define shipping services on your site with flat base rates that can be manipulated further through Rules. These modules have been designed to work with Commerce Shipping 2.x. You can always find help on IRC in the #drupal-commerce channel. General Rules inquiries should not be posted to this module's issue queue. If you can't find what you need in the documentation or screencasts, consider searching the issue queues or Commerce Q&A to see if your question has been dealt with. Implementing a discount based on an item in the cart. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |