πŸ‡ΏπŸ‡¦South Africa @niki v

Account created on 15 May 2011, over 13 years ago
#

Recent comments

πŸ‡ΏπŸ‡¦South Africa niki v

It's been a while since I solved his so I don't remember exactly how I did it but patch failures for me were a windows permission error or similar on WAMP server. If that applies to you, Google is your friend. If not WAMP, it's a composer issue

πŸ‡ΏπŸ‡¦South Africa niki v

Still an issue with D10 and commerce imports
I'm working locally and views data export only gives local file paths, so I downloaded all the images and placed them in the folders that matched the csv structure. The import fails with cURL error 3 but succeeds if image field is not required and I leave it out of the import.

I guess I'll be editing my csv files or is there another way to add the local file path?

πŸ‡ΏπŸ‡¦South Africa niki v

I just ran into this error after doing some upgrades on a local d10 site. I can confirm that the patch solved it

πŸ‡ΏπŸ‡¦South Africa niki v

I have the same issue, attempting to remove field values gives "The website encountered an unexpected error. Please try again later." wsod although it doesn't break the site.

log message is
Error: Call to undefined method Drupal\Core\Config\Entity\ConfigEntityType::isSubclassOf() in Drupal\commerce_stock_local\Form\PrepareUninstallForm->submitForm() (line 90 of C:\wamp64\www\D10ck\kickstart\web\modules\contrib\commerce_stock\modules\local_storage\src\Form\PrepareUninstallForm.php)

Is this a core problem or some other conflict?

I'm using Commerce Kickstart 3 locally, product imports are failing and I was testing to see whether the stock module is implicated.

πŸ‡ΏπŸ‡¦South Africa niki v

This can also be done with views without the use of any additional modules and is necessary if the number of categories makes facet searching unworkable.

Create a new taxonomy view, selecting the product taxonomies you want to use
Select a format that shows fields
Format should be a page with pagers or whatever else you require

Edit the view:
Change the path to /taxonomy/term/%taxonomy_term
Relationships: relevant product taxonomies (required)
Add any fields that you wish to show: title, image, etc
Contextual filters: "Taxonomy Term: term ID"
Leave the filters provided
Add any type of sorting that is relevant to you

Navigating to these taxonomy pages will show your product fields in the same way that the default node view does, but the taxonomy page title will not show. To add a page title, you need to create a new view, which should be a block.

Do not create a block on the page view you just created, or a custom block, it should be a new view block:

Show: Taxonomy terms of your relevant product taxonomy, in a format that shows fields with a block display.
Do not use a pager, show 1 item
Continue & Edit
Add the field "Taxonomy term: Name" and in the style settings, select "Customize field HTML" and select HTML element H1
Add a contextual filter "Taxonomy Term: Term ID"

Edit the Taxonomy Term view that you created first
Click on the "add" button in the Header section
Select "Global: View area"
Find the new view you created and select the block display
Check the "Inherit contextual filters" checkbox

Creating a catalogue page that shows taxonomy terms will require creating a glossary view, there's a tutorial here https://getlevelten.com/blog/kristin-brinner/drupal-tutorial-use-views-c...

πŸ‡ΏπŸ‡¦South Africa niki v

Trying to update this module as part of a local Commerce Kickstart install via composer and the patch keeps failing

Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2023-06-01/3363948-3.patch β†’

I'm not sure whether this is related but my local install then has the following error

Error: Failed opening required 'C:\wamp64\www\kickstart\web/../vendor/autoload.php' (include_path='.;C:\php\pear') in C:\wamp64\www\kickstart\web\autoload.php on line 16

If this is actually a kickstart problem, I'll open an issue there but this is the only aspect of the entire scaffold update that fails consistently

πŸ‡ΏπŸ‡¦South Africa niki v

It works as designed: the intermingling comes from having product-type display fields numbered 0,1,2,3... and also having product-variation or attribute fields numbered 0,1,2,3.... Number each field in each display as you want them to appear in the product page display. As the variation fields containing price, stock, weight, etc are injected into the product-type display, you use "show row weights" and number them in the product-variation display as you want them in the product-type display.

I put a simple example here:

Product display
image - 0
body - 1

Product variation
price - 2
stock level - 3

Product display
add to cart form - 4
categories - 5
tags - 6

πŸ‡ΏπŸ‡¦South Africa niki v

It works as designed, no need for any coding or modules.

When setting the product-type display, use "show row weights" and number accordingly. Then go to your corresponding variation display and number the variations sequentially as you would like them positioned in the product display.

For example:
Product display
image - 0
body - 1

Product variation
price - 2
stock level - 3

Product display
add to cart form - 4
categories - 5
tags - 6

Production build 0.71.5 2024