SITUATION:
XML Import Products with Variations by GROUP ID
( Option 2: All products with variations are grouped with a unique value that is the same for each variation and unique for each product. Unique Value: {group_id[1]} )
+ When product has no variation convert to simple product
PROBLEM:
Variations of Products in XML arent BEHIND THEMSELVES with the same GROUP ID.
Import detects that the next product doesnt have the same GROUP ID so it changes the product to simple product. When it arrives to another product with the same GROUP ID it wont change the first product to variable product and wont add the variation.
RESULT:
Products are simple products even if they should have variations.
EXAMPLE IMPORT:
Product Coca Cola 1253 should have variations but its a simple product.
<?xml version="1.0" encoding="UTF-8"?>
<document>
<product>
<title>Coca Cola 1253</title>
<group_id>1253</group_id>
<price>6</price>
<size>6 pack</size>
<description>Fizzy and tastes great.</description>
</product>
<product>
<title>Coca Cola 1</title>
<group_id>1</group_id>
<price>10</price>
<size>12 pack</size>
<description>Fizzy and tastes great.</description>
</product>
<product>
<title>Coca Cola 2</title>
<group_id>2</group_id>
<price>12</price>
<size>18 pack</size>
<description>Fizzy and tastes great.</description>
</product>
<product>
<title>Coca Cola 1253</title>
<group_id>1253</group_id>
<price>99</price>
<size>300 can case</size>
<description>Fizzy and tastes great.</description>
</product>
<product>
<title>Sprite</title>
<group_id>19283</group_id>
<price>6</price>
<size>6 pack</size>
<description>Not as good as Coca Cola.</description>
</product>
<product>
<title>Sprite</title>
<group_id>19283</group_id>
<price>10</price>
<size>12 pack</size>
<description>Not as good as Coca Cola.</description>
</product>
<product>
<title>Sprite 1253</title>
<group_id>1253</group_id>
<price>12</price>
<size>18 pack</size>
<description>Not as good as Coca Cola.</description>
</product>
<product>
<title>Sprite</title>
<group_id>19283</group_id>
<price>99</price>
<size>300 can case</size>
<description>Not as good as Coca Cola.</description>
</product>
</document>
WORKAROUND NOT WORKING:
Disable “When product has no variation convert to simple product”. All products will be variable, but products with one variation cant be bought
Any ideas?
Ive found something like fn:sort and sortedXPath but I dont have a clue how to use it in XPATH or function. Or if its even working.
Thank you in forward for an answer
Luká? LEAX Dunaj
]]>https://www.ads-software.com/plugins/flickr-justified-gallery/
]]>After few hiccups I successfully moved locally developed wordpress install online. The site works fine. But…
FTP shows my old files having different group/owner then the new files.
I can delete uploaded files through wp media page, but not from ftp.
The folder where wp is running has same group/owner id then my old files, but all recursive files/folders are showing different group.
I don’t have shell access to hosting.
My guess is to ask them to ‘chown’ something
Local system: wp 4.0 – windows 8.1 with xampp 3.2.1
Thank you for your time
]]>probably a rather stupid question. But what’s group id?
Thanks a lot,
Fabian
https://www.ads-software.com/plugins/bp-force-profile/
]]>types_render_field
. If I know the field-slug, how do I render out only the Field Name?This info seems to be missing from the Fields API…
Thanks for any assistance!
https://www.ads-software.com/extend/plugins/types/
]]>I want to place static content on an individual groups home page. Ideally, I’d like to simply disable the activity stream from the admin menu and then implement this, but I’ve realized that the easiest thing to do would be to simply enable activity streams and then modify my BuddyPress theme’s activity-loop.php
file to display the corresponding group’s static home page. But, to do this, I would need to be able to distinguish between each group – I assume by group id. How do I retrieve the group id to a variable? Is it as simple as created a global bp
and then using $bp->group->id
?