How to export "extra variant media" from odoo website module - odoo

I dont see any way to export those extra images. what is the id of those images, i would prefer to use an api to scrape the images

Related

Web APIs FileReader() hide download option

I've successfully integrated the FileReader() that renders a file from a BLOB so the user can view and interact with it, however the revised criteria states that the user shouldn't be allowed to download the document now.
The requirement is that the download icon is removed from the FileReader() but I can't seem to find a way of doing this, as it's baked into the actual Web API.
I started to write my own PDF viewer using a basic Vue to PDF package and adding custom controls but this is a bit of a monster and I'd like to avoid a complete re-write to remove one action.
Is there any way of removing the download CTA before it renders the PDF?
More context..
The PDF is rendered in the DOM from a BLOB that's passed via an end point I hook into with Axios. I then readAsDataURL(blob) and finally create the FileReader() result as a URL.createObjectURL(blob) to give me the data that I render as the canvas src to enable the PDF viewer. Unfortunately this can't be a PNG as it needs multi pages. Thee issue is that it's sensitive docs that can only be viewed on the portal, so it's to prevent users from easily downloading (aware they could just print screen).

Hide additional product images when one colour option is selected on Shopify product page

I'm trying to display only the images of the colour variant I have selected on the product page. They're currently being pulled in by their Img Alt text, which is in the product list CSV.
I would to hide the thumbnails of the other colours when they're not selected, and switch to them when they are, including replacing the larger featured image.
Any help would be greatly appreciated. Thank you.
product-template.liquid https://pastebin.com/AyaDpNG4
theme.js https://pastebin.com/KBniw7J8
Link to Product page
https://4158qu33fstl4w69-53119090861.shopifypreview.com/products/lightweight-trainers
Link to CSV
https://docs.google.com/spreadsheets/d/1lc8XcHDMyMFGAkegTRrBLLTlQN8oNVbU430vT0aeP4Y/edit?usp=sharing
From a data standpoint, there is unfortunately no way to do this in vanilla shopify (without an app or using metafields to set up variant images).
The reason for this is that variants only allow one featured image in the data structure. For this reason, you'll likely need to go the app route.
An alternate "hacky" approach would be to add slugs to the end of your image names ('-maroon', '-black', '-all') and then use javascript to match up the images to the currently active variant. This would always be a bit risky and require work when uploading images, though.
Here are some APP, but most of the APPS over Shopify has paid.
Variant Image
Wizard
Variant Image Automator

How to scrape a website where details are not on the inspect page?

I have this website that I need to scrape.
https://www.dawn.com
My goal is to scrape all news content with the keyword "Pakistan"
So far, I can only scrape the content if I have the URL. For example:
from newspaper import Article
import nltk
nltk.download('punkt')
url = 'https://www.dawn.com/news/1582311/who-chief-lauds-pakistan-for-suppressing-covid-19-while-keeping-economy-afloat'
article = Article(url)
article.download()
article.parse()
article.nlp()
article.summary
From this code, I wrote I would to copy and paste all the URLs and that is too much to do manually. Do you have any idea on how to do this?
better is goto> https://www.dawn.com/pakistan & download (.html) then scrape all the news content, later bifurcate using keywords.

How to import theme in shopify?

I took backup my Shopify store data using Themes -> Action -> Duplicate option and I'm tried to import this theme into my new Shopify account using Themes -> Theme Library -> Upload theme.
But I can't able to get my old web stores data such as logo, products, Contact Us, About Us and other stuff.
Can any help me to fix that issue?
Here are my store's links
Store 1 : https://aasthaworld-markertplace.myshopify.com
Store 2 : https://kevell-textiles.myshopify.com
The Shopify data is not stored in the theme files
This means that all of the:
images
pages
products
navigations
collections
blogs
orders
customers
etc..
Will NOT be transferred. You need to use an App or to manually transfer all of the content you need.
One of the many "joys" when transferring stores in Shopify.
Go to;
Online Store
Import Theme
Upload theme (under Theme Library)
Once you have activated the theme you will be able to see it on your store.
You will need to do separate exports for products, customers, pages etc. Some may require manual imports, or copy & paste.

xwiki export page option for HTML

created some pages and when export that page in PDF then PDF page option page comes but when export it as HTML no HTML page option comes.is there any way to get this.html export page
The HTML export offers currently the same minimal user interface as the XAR export, which is to select the list of pages and then to click the appropriate export button, exactly as you have shown in your screenshot: https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/Exports#HHTMLExport There are currently no other export options for these types of formats. Maybe in the future.
PDF export, on the other hand, has this intermediary options screen https://www.xwiki.org/xwiki/bin/view/Documentation/UserGuide/Features/Exports#HPDFExport that is specific only to this type of export as it contains options specific to the fact that the page(s) are exported and merged into as single PDF file. These options make little sense for the other type of export formats (XAR or HTML).
I hope this answers your question.