I am working on a live website for someone who sells his MP3s. I have noticed now that the virtual files have no download link, after being purchased and on the product page in the backend. Thing is, I know they existed before as people have purchased MP3s without issue. So they have been lost somewhere perhaps because of a Wordpress update or theme change.
I exported my current wordpress product and variable product database and can see that the link information is actually there. I don't have any experience working with databases so this is a bit out of my depth, but I can see this:
<wp:postmeta>
<wp:meta_key><![CDATA[_file_paths]]></wp:meta_key>
<wp:meta_value><![CDATA[a:1:{s:32:"a97427231bd5a0eb7c0763ee6444bcc0";s:65:"http://domainname.com/wp-content/fl_dl/Deep-Relaxation.zip";}]]></wp:meta_value>
Which is the correct url for the mp3. How do I get Wordpress to realise that the links are already there? I really do not want to have to go through every product and input the link again as there are hundreds!
Related
I couldn't find a tutorial or hint regarding making a product image in the wordpress theme "uncode" clickable. when clicking on the product image, it only opens the image in full size but doesnt rather redirect to the details page.
I assume it isn't a big thing that needs to be changed/added, but finding it seems quite difficult, as I have no experience regarding this theme at all.
thanks upfront!
EDIT: What I am trying to find out, is how to make this (tutorial for another theme https://slocumthemes.com/2015/10/how-to-make-woocommerce-thumbnails-clickable/) for my theme, uncode.
can anybody help? I think I found the line of code in one of the php files, but I have no proper experience of php
You can override woocommerce template.
Create a folder named woocommerce in your uncode theme and further corresponding folders where relevant file is added in woocommmerce plugin. e.g woocommerce/templates/single-product/product-image.php.
In that overridden file you can customize the HTML i.e link your image.
I apologize in advance for not having very many examples of effort already put into solving this. I've been googling and racking my brain but I can't even begin to visualize how this should be done.
We have a WordPress site with a Woocommerce store. To put it simply, we will be selling products for various resorts, and each resort will have their own product category to keep everything separate. So for instance if someone goes to https://www.oursite.com/resort-1, it'll be a page with all of Resort 1's products. This is all fine and good.
The problem: for each resort, we also have iPad kiosks that will use Kiosk Pro to display each resort's products and allow them to be purchased. These kiosk versions of the site must be accessible via a subdomain, e.g. https://resort-1.oursite.com. These subdomain versions should start with a landing page, then lead to the expected product listing but with a slightly different look (all via css).
My questions:
How can I set up a subdomain to lead to a specific page without using a multisite?
How can I adjust all links on each page so if someone starts on the kiosk subdomain, they'll stay on the kiosk version no matter where they navigate to?
It strikes me that one way to accomplish this would be to:
a) use htaccess to route to a page with the subdomain passed as a var, for example subdomain.domain.com/page to domain.com/page?sd=subdomain
Mod Rewrite Subdomain to PHP with GET variable
Sub-domain as variable in mod_rewrite
and then;
b) include code in your theme if (sd = sudomain ) {do_something()} where do something uses a different style.css and modifies any html within the page as desired.
I've got an issue regarding categories I have never seen before.
I am able create a new category, and then everything is OK, the category is listed.
When updating a category in the WordPress admin, the category becomes unlisted. At postboxes, at the category admin page and with get_categories() as well.
However, the category is still viewable on the frontend, and I can access the category edit page when putting the right term ID in the URL (for example, I put 43 as ID in the browser omnibar.
wp-admin/term.php?taxonomy=category&tag_ID=43&post_type=post&wp_http_referer=%2Fwp-admin%2Fedit-tags.php%3Ftaxonomy%3Dcategory
I have searched the database but can't find anything. I searched the theme and can't find anything. I ran the WP_ALLOW_REPAIR database repair process, but no luck. The tool even says no repair was needed at all.
The site is running a theme from SMThemes and runs dual language with the WPML plugin.
Any thoughts?
The categories disappearing was caused by a bug in WPML version 2.7.1.
More information: [Resolved] Categories disappear after WPML activated
The troubleshooting options did not work for me, however. I decided to outcomment the add_filter terms_clauses in the sitepress.class.php file.
I inherited some unfinished website from another developer on WordPress 4.2.2 running the Wise Guys theme. On other pages, the Lower Description Bar shows great quotes from people, but on a specific page (the gallery page) it shows these words... Hello world! Please change me in Site Preferences -> This Category/Section -> Lower Description Bar. Obviously it looks ugly.
I am not a great WordPress user myself, I prefer Joomla, but my client is needing his site to work right in WordPress.
I've got a few questions in this regard:
1) How do I tell the Category/Section of the specific page so that I can follow that suggested path above? I don't seem to find a reasonable route; after all there's only one category that doesn't seems to feature anywhere on the pages.
2) When I login to the backend and follow that path (Site Preferences -> etc...) there's little to do or change. Where in the file system could I do a manual edit, if need be? I'd still want to keep the quotes showing on the other pages, even on this particular page if possible.
Check which plugins are activated. The quotes sounds like "Hello Dolly" is activated. You can deactivate it, since it is a default plugin included with the WordPress download.
As for manual edits, all of your changes should take place in your theme, keep in mind that any changes to a third party theme will be overwritten with any updates. So, you should rename the theme to a custom name. Themes are locate in the themes folder "/path/to/your/wordpress/wp-content/themes".
I have gone through every conceivable update to try and get this to work.
I have a clients blog where we're trying to implement Woocommerce, but despite working when we first lauched, something has gone wrong recently and I cannot track it down.
I have gone through both options listed here:
http://docs.woothemes.com/document/third-party-custom-theme-compatibility/
I have updated Wordpress in the dashboard, this caused issues so I then updated it manually and ftp'd all the content to the site, after reading this.
https://wordpress.org/support/topic/fatal-error-after-41-upgrade#post-6349382
Then I had a notification that Woocommerce could be updated, so I took advantage of that.
I have also tried disabling and re-enabling woocommerce, and deleting and reinstalling it. The only weird discrepancy is that in the previous version if I checked the woocommerce pages in the dashboard, I could see these hooks:
[woocommerce_checkout]
[woocommerce_cart]
But now those are not present and the page is not editable, but I assume this is part of the latest woocommerce version.
I also tried to enable stable wordpress themes (twentytwelve and twentyfifteen) to see if there was a conflict with my child theme, but that didn't solve anything. This is as per the advice here:
https://support.woothemes.com/hc/en-us/articles/203112147-How-to-Get-Help
Here is a screenshot from one of my empty href's.
I realise this is a vague question with no code referenced, but I just don't know what is going on.
I can send a link to the site if that helps I am just hoping someone else has also come up against this issue.
In your dashboard go to WooCommerce > Settings and check in every tab that the right page is linked. This will allow the Woo links to work correctly.