This example highlights the versatility of interface options you can create by using radio inputs to select a product variation rather than the default menus.
This section of code could be used in place of the variations code block in either the product.php template file or the category.php template file (if you want variation inputs in your category products list).
<?php if(shopp('product','has-variations')): ?>
<ul class="variations">
<?php while(shopp('product','variations')): ?>
<li>
<label>
<input type="radio" name="products[<?php shopp('product','id'); ?>][price]" value="<?php shopp('product','variation','id'); ?>" />
<?php shopp('product','variation','label'); ?>
</label>
</li>
<?php endwhile; ?>
</ul>
<?php endif; ?>
Warning
Using this will make it able to add empty products to your cart (if the product has variations)
Related Posts:
- How do I get WooCommerce to automatically recreate pages? [closed]
- Recommended eCommerce Plugin for a T-Shirt Sales Business? [closed]
- WordPress shopping cart that supports 2 tier product variation options
- Does a wordpress plugin (not a membership one) exist for selling access to some webpages? [closed]
- E-commerce-like solution [closed]
- Is there a plugin that provides a stackoverflow style editor for wordpress? [closed]
- Who are the most trusted plugin developers? [closed]
- Open Source Forum for wordpress similar to stackexchange or stackoverflow [closed]
- Send email when a new post is published [closed]
- How to transfer a WordPress blog to a different domain?
- Membership / subscription plugins – alternatives [closed]
- Email Notifications of new posts to users – suggestions [closed]
- How to override normal WordPress search in Buddypress? [closed]
- Library plugin for WordPress [closed]
- Network-Wide Plugin Settings Management
- Quote rotator in the sidebar
- Image Crop/Resize Function/Code Sinppet/Plugin to adjust/crop images during upload
- Recommendationf for Quiz Plugin that saves results [closed]
- Conditional Display of Links in Widgets
- WordPress Plugin for One-Time Event Registration? [closed]
- recommended breadcrumb plugins with possibility for hiding “Home” link [closed]
- Looking for a WordPress plugin to show five latest tweets one at a time? [closed]
- Peer Review Plugin for Posts? [closed]
- How to restrict an entire WordPress site to visitors, but the register and login page?
- Duplicate a Multi-Site Subdomain
- Is it possible to integrate WordPress *posts* and social media (Facebook, Google+, Twitter)? [closed]
- New Plugin: Post update pushes a copy as a revision
- Is there a plugin to record querystring parameters for a page (for customer tracking)? [closed]
- How to Implement “Notice: This theme recommands the following plugin:xyz” in wordpress? [closed]
- Display comments of users on single page
- How To Hide Filters On Specific Categories with WooCommerce Products Filter(WOOF)
- How can I implement a notification system in wordpress?
- How to make an interface similar to multi-site for switching between multiple (single) sites for administrators?
- How to make a customize role and view a specific plugins base on that role?
- Only Homepage not loading properly
- Integrating non-WooCommerce and WooCommerce Orders together [closed]
- Add a captcha form to the woocommerce register form
- How can I disable widget from being visible on some pages?
- Information and Videos for Customers in the Backend [closed]
- How to create an archive page (with links) for a date range?
- How to create a managed image repository in wordpress
- How to send an automated email to the customers when product is added woocommerce
- WordPress plugin/theme or other wayout to create portable pages?
- Want to Show Sub categories under Categories section using Woo Commerce [closed]
- Paypal Integration [closed]
- Is there a WordPress plugin that can post to Google+? [closed]
- Limit the amount of words displayed by the Latest News plugin, or recommend an alternative [closed]
- Plugin to hide image in excerpt
- HelpDesk solution for WordPress [closed]
- How to automatically add edit link on frontpage post of any wordpress theme?
- How to install Google Analytics onto site without internet access
- Fullscreen gallery plugin [closed]
- I want to know about the plugins that help in while I write code on my Page? [closed]
- Hotel reservation plugin you would recommend [closed]
- Is there a plugin to turn comments into structured reviews [closed]
- Moving to a WordPress blog. What do I need to know?
- Woocommerce – Change Variable Product Add to Cart to behave like external product using Custom Field (link) [closed]
- How to completely hide a WordPress/BuddyPress Install? [closed]
- WordPress as heavily personalized content management portal, and somewhat like dropbox [closed]
- Replace woocommerce | (pipe) separator in product variation to , or another character?
- What plugins can I use to feature (affiliate) products on my blog (from Amazon.com)?
- Plugin to create unlimited custom shortcodes?
- A plugin popularity data inside “install new plugin” [closed]
- How to get Recent Post From Each Category with Thumbnail?
- Managing media by folder
- Adding custom Field To The Posts Listing
- Elementor Sidebar not loading when PRO elements plugin is active
- WordPress – estimate used product
- Access remote SFTP server via WordPress login?
- How do I allow a user to purchase an expiring passcode to access part of my website, from my online store, similar to pay-per-view?
- How to update all in-site redirect URLs to destination URLs at once
- One quantity for group of variations
- WooCommerce Checkout Issue specific to Instagram In-App Browser
- Forum creation with bbpress and front end
- I would like to add a function that allows the customer to add multiples of the same product to their basket, how can I do this easily?
- Tracking sales/conversions in Woocommerce using Google Analytics
- How to make a website with two types of logins , Sellers and buyers?
- How to create a dashboard for logged-in users with custom functionality? [closed]
- Posted posts scheduling to unhide for new members
- TheCartPress plugin – Make every item in store unique
- Any plugins that upload, resize, and display images? [closed]
- Using Taxonomies with Vote It Up plugin chart [closed]
- Making a particular kind of search engine with WordPress?
- Pulling RSS from site and display it in posts
- making users able to add their own products wp e-commerce [closed]
- Selling Downloadable Products [closed]
- Looking for a related post plugin which slides-in like the one at inc.com does [closed]
- Is there a WordPress Plugin like Imsanity that keeps high resolution originals? [closed]
- Facebook like plugin with Multi Option-Needed [closed]
- WordPress Plugin for Maps of specific Tweets? [closed]
- How can I create a navigation menu in the sidebar that can also act like a slider?
- Looking for a home page carousel [closed]
- Sell “create a post”, paid account for post creation
- Self-hosted Plugins & Themes store with auto-updates? [closed]
- Need a Plugin to create a registration form for my website? [closed]
- Slider Plugins for header [closed]
- Display out of stock products in WooCommerce [closed]
- how to make wordpress remember my choice
- I’m getting the following error: Fatal error: Uncaught Error: Call to undefined function oil_paint_regeneration() [closed]
- A multi-section WordPress store [closed]