WotC Product Identity and Design

I have a simple question, at least simple for people who understand legalities better than me. The way I understand the OGL and SRD, is that you can use anything from within and sell it without restrictions. That is, without using anything listed under product identity. And this is as simplified as it gets in my head.

For example, a Lizardfolk can be used since the monster is in the SRD, but a Lizardfolk Shaman cannot, since he isn’t. That much is clear. The question comes now for the design.

I am glad that things like 5e LaTeX and GM Binder exist. But can one really make his documents look exactly like the WotC ones? Like the red splatter on the cover or the fonts inside? Are these things not product identity?

Another question is about copying material from the SRD. Can one, let’s say, write a campaign setting that complies with the SRD, and include inside this campaign setting some magic items or monsters from the SRD? And by include I mean full text, one to one matching. The artwork can be different.

Thanks in advance for any possible answers.

In WooCommerce, is there a way to set a flat rate on a specific type of product? [closed]

One of my clients is trying to do some weird things with shipping.

He wants to calculate a flat rate of $ 4 for a quantity of 5 widgets or fewer, and then add $ 1.50 per block of 5 widgets (ie, if someone orders 8, it should charge $ 5.50, or if the quantity is 12, then $ 7). This is only for one type of product, though, but he’s got multiple items of that product type, entered in as separate products.

I know, it’s a mess.

Is there any way to do this with shipping zones or something similar?

use my custom code in woocommerce product image

I want to use my custom code in woocommerce products gallery image , I have done that before for a simple gallery but this time my code is little more professional and i want use the tag in woocommerce products gallery , here is the code:

<div class="product-gallery">                             <span class="badge">Offer</span>                             <div class="product-carousel owl-carousel">                                 <div class="item">                                     <a class="gallery-item" href="./assets/img/single-product/thumbnail-1.jpg"                                         data-fancybox="gallery1" data-hash="one">                                         <img src="./assets/img/single-product/thumbnail-1.jpg" alt="Product">                                     </a>                                 </div>                                 <div class="item">                                     <a class="gallery-item" href="./assets/img/single-product/thumbnail-2.jpg"                                         data-fancybox="gallery1" data-hash="two">                                         <img src="./assets/img/single-product/thumbnail-2.jpg" alt="Product">                                     </a>                                 </div>                                 <div class="item">                                     <a class="gallery-item" href="./assets/img/single-product/thumbnail-3.jpg"                                         data-fancybox="gallery1" data-hash="three">                                         <img src="./assets/img/single-product/thumbnail-3.jpg" alt="Product">                                     </a>                                 </div>                                 <div class="item">                                     <a class="gallery-item" href="./assets/img/single-product/thumbnail-4.jpg"                                         data-fancybox="gallery1" data-hash="four">                                         <img src="./assets/img/single-product/thumbnail-4.jpg" alt="Product">                                     </a>                                 </div>                             </div>                             <ul class="product-thumbnails">                                 <li class="active">                                     <a href="#one">                                         <img src="./assets/img/single-product/thumbnail-1.jpg" alt="Product">                                     </a>                                 </li>                                 <li>                                     <a href="#two">                                         <img src="./assets/img/single-product/thumbnail-2.jpg" alt="Product">                                     </a>                                 </li>                                 <li>                                     <a href="#three">                                         <img src="./assets/img/single-product/thumbnail-3.jpg" alt="Product">                                     </a>                                 </li>                                 <li>                                     <a href="#four">                                         <img src="./assets/img/single-product/thumbnail-4.jpg" alt="Product">                                     </a>                                 </li>                                 <li>                                     <a class="navi-link text-sm" href="./assets/video/download.mp4" data-fancybox                                         data-width="960" data-height="640">                                         <i class="mdi mdi-video text-lg d-block mb-1"></i>                                     </a>                                 </li>                             </ul>                         </div> 

How to Show Specific tags which start checklist- in product page in woocommerce wordpress

I want to show these tags in products page which start with the checklist- (in WordPress woo-commerce)

Kindly provide mw the code, I will replace with this code

get_id(), ‘, ‘, ” . _n( ‘Tag:’, ‘Tags:’, count( $ product->get_tag_ids() ), ‘woocommerce’ ) . ‘ ‘, ” ); ?>

Return product list based on current product attribute

I have modified my single-product.php and want to pop in a block of other products that share the same brand name which I have specified in a product attribute called ‘brand’.

This is my code so far but it is returning all the products and NOT filtering by the pa_brand.

<!-- Custom 4 up product filtered by Brand attribute -->         <ul class="products">                 <?php             $  args = array(                 'post_type' => 'product',                 'posts_per_page' => 4,                 'taxonomy' => 'pa_brand',                 'field'    => 'slug',                 'terms'    => $  product->get_attribute( 'brand' )                 );             $  loop = new WP_Query( $  args );             if ( $  loop->have_posts() ) {                 while ( $  loop->have_posts() ) : $  loop->the_post();                     wc_get_template_part( 'content', 'product' );                 endwhile;             } else {                 echo __( 'No products found' );             }             wp_reset_postdata();         ?>     </ul><!–/.products–> 

What should the schema look like for an API-based SaaS product?

I’m building a developer tool product, which will be accessible solely by APIs. Following are a few features I’ve identified that will be needed:

  1. Issuing/refreshing API keys
  2. Purchasing API credits
  3. Subscriptions for API credits
  4. Monitoring usage of API for each user
  5. Deducting an API credit for each call

What all considerations should I take into account when designing a schema for this? Are there any open examples of schemas for such a product? Is there a term for this?

Note that this would be quite similar to what something like Stripe or any API-based SaaS is doing.

Add product to cart with hook, discount applies after refresh of page

I have this simple setup where I add a product to the cart as a gift if conditions are met like so:

add_action( 'woocommerce_before_cart', 'apply_membership_benefits' ); function apply_membership_benefits() {   global $  woocommerce;              // Get the cart subtotal in non-decimal number format   $  cart_subtotal = WC()->cart->subtotal;   $  product_id1 = 9617; // membership product       $  product_id2 = 9616; //  custom bottle product          // If cart subtotal is less than 800 remove benefits   if ($  cart_subtotal < 800) {       WC()->cart->remove_cart_item( WC()->cart->generate_cart_id( $  product_id1 ) );       WC()->cart->remove_cart_item( WC()->cart->generate_cart_id( $  product_id2 ) );   }       // If cart above 800 add membership benefits   if ($  cart_subtotal > 799 ) {            $  item_key_inc_cart = WC()->cart->add_to_cart( $  product_id1 );     WC()->cart->set_quantity( $  item_key_inc_cart,1 );            $  item_key_inc_cart = WC()->cart->add_to_cart( $  product_id2 );     WC()->cart->set_quantity( $  item_key_inc_cart,1 );          }  } 

The cart will work correctly only I also have a discount plugin that also applies a discount to this cart of 20%. The problem is the discount is applied if the user is refreshing the page so the cart content seems to be read before the woocommerce_before_cart hook.

Consequently if I remove one product from the cart adn the subtotal will be below 800 as shown in the example the gifts will be removed but the discount is still applied and needs a page refresh to be recalculated and eventually removed.

The discount plugin seems to add all the necessary data with these hooks

    // Prepare cart discounts     add_action('woocommerce_before_calculate_totals', array($  this, 'prepare_cart_discounts'), 1);      // Apply cart discounts     add_action('woocommerce_after_calculate_totals', array($  this, 'apply'));      // Remove no longer applicable cart discounts     add_action('woocommerce_before_calculate_totals', array($  this, 'remove_cart_discounts'), 2);     add_action('woocommerce_check_cart_items', array($  this, 'remove_cart_discounts'), 1);      // Invalidate no longer applicable cart discounts     add_filter('woocommerce_coupon_is_valid', array($  this, 'maybe_invalidate_cart_discount'), 10, 2);      // Register custom coupon type     add_filter('woocommerce_coupon_discount_types', array($  this, 'register_custom_coupon_type')); 

Can I mention Dungeons & Dragons in a D&D 5e OGL product description?

I have been thinking of publishing a D&D 5th edition module under the open gaming license (OGL).

I understand the phrase “Dungeons & Dragons” product title is copyrighted trademarked and thus can’t be mentioned in the module.

My question is can I use “Dungeons & Dragons” for the product description on the website I plan to sell it on?

E.g say “compatible with Dungeons & Dragons 5th edition”.