Digital experiences for all disciplines
Forum Replies Created
-
-
This reply has been marked as private.
Thanks a lot Rui,
I actually just added the price.php in child theme and it seems to be working fine for now. If there is a problem I will remove it and start using again the outdated version of dante.
I guess the most important thing is to be ready for woocommerce 2.5 as according to the developers the changes from 2.4.9 to 2.5 are going to be major and they are going to affect a lot of themes that have woocommerce integrated.
Thanks again for your time.
I did a bit of research and a lot of people are saying not to do any updates and stay with the theme’s files in order to be safe.
Would you recommend this as well?I have also noticed that there are going to be some MAJOR changes in woocommerce plugin and I would like to remind you of this:
https://woocommerce.wordpress.com/2015/11/09/woocommerce-2-5-beta-1/
I am sure your developers might be aware of this but these changes look like they will really affect swiftideas themes so I wanted to know if you are planning to work on modifications before the official release on January 2016.
Hi Rui,
Dante theme is using the following code for price.php
<?php /** * Single Product Price, including microdata for SEO * * @author WooThemes * @package WooCommerce/Templates * @version 1.6.4 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly global $post, $product; ?> <div itemprop="offers" itemscope itemtype="http://schema.org/Offer"> <p itemprop="price" class="price"><?php echo $product->get_price_html(); ?></p> <meta itemprop="priceCurrency" content="<?php echo get_woocommerce_currency(); ?>" /> <link itemprop="availability" href="http://schema.org/<?php echo $product->is_in_stock() ? 'InStock' : 'OutOfStock'; ?>" /> </div>
However, the new update is running this version:
<?php /** * Single Product Price, including microdata for SEO * * @author WooThemes * @package WooCommerce/Templates * @version 2.4.9 */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } global $product; ?> <div itemprop="offers" itemscope itemtype="http://schema.org/Offer"> <p class="price"><?php echo $product->get_price_html(); ?></p> <meta itemprop="price" content="<?php echo esc_attr( $product->get_price() ); ?>" /> <meta itemprop="priceCurrency" content="<?php echo esc_attr( get_woocommerce_currency() ); ?>" /> <link itemprop="availability" href="http://schema.org/<?php echo $product->is_in_stock() ? 'InStock' : 'OutOfStock'; ?>" /> </div>
Will the functionality of the theme break if I add the updated price.php (version 2.4.9) to child theme or I should wait for a Dante theme update?
Sorry if I insist but it’s a bit confusing.
Thanks for your reply Rui,
Just to not do any mistake I am getting only the following update from the System Status:
dante/woocommerce/single-product\price.php version 1.6.4 where the updated version is 2.4.9.
What I have to do is go to wp-content/plugins/woocommerce/templates/single-product/price.php and copy the code and replace it in wp-content/themes/dante/woocommerce/single-product/price.php ?
As I said I have dante and dante child installed and I am currently running dante child but the price.php file isn’t modified inside dante-child theme.
So, do I do what I wrote above or I have to create the path in my dante-child theme like wp-content/themes/dante-child/woocommerce/single-product/price.php?
In other words, do I replace the price.php file inside dante theme or I create the path inside dante child and drop it in there?
Please let me know.
Thanks in advance.Just to give you an update,
Since some of those customers have multiple accounts and they use the same email address I also used a plugin called “Allow multiple Accounts”.
My problem was that 960/4000 users didn’t contain an email address (!!!).
I went to phpMyAdmin and searched for all users that don’t have anything in field “Certificazione” and I found 10 of them out of 4000.
I went to their profile in WP and I updated one by one by entering their profile and clicking update user.
When I updated one I did the following search in MySQL:SELECT * FROM
wp_usermeta
WHERE meta_key = ‘Certificazione’ and meta_value = ”To my surprise it was showing a user ID that even though the Certificazione field in WP was set it appeared empty in the database.
So for each update of the 10 users that had no Certificazione field there was a corresponding user ID that even though it had a value in Certificazione in WP it appeared empty in the database after the update of the previous user.
It’s a bit hard to make it clear but it seems like the user ID’s that appeared empty they all had no email address set!So I did a custom search to find which fields they didn’t have an email address using this code:
SELECT * FROM
wp_users
WHERE user_email = ”and all 960 appeared. I then decided to set a custom email address to all of them to try and find out if this is what causes the problem so I used the following code:
UPDATE wp_users SET user_email=’[email protected]’ WHERE user_email=”
I will now have to wait until another customer makes an order to see if this was causing the issue.
I am just writing here what I am doing in case someone has a similar issue in the future so they can figure it out faster.
Fingers crossed.Hi David,
As I said the problem appears only when the imported users proceed with a purchase. So even if I create a test site I wouldn’t be able to check it as I would have to import them in the dev site and if I make an order through them they would be notified through email notification.
I have tested the code you provided by adding it to display in “My Account” page. It is shows the Certificazione correctly as I have set it in my profile. I then tried changing the user_id with one of a different user that has different Certificazione type than mine and it also shows correctly under “My Account” page, which means the code is working.
I checked the database again using this code:
SELECT * FROM
wp_usermetaWHERE meta_key = 'Certificazione' and meta_value = ''
to check for users that had an empty value in this field and it only found 1 user when I know for a fact (from the csv file I uploaded) that there are 13 users with no value in Certificazione. This 1 user I searched him in wordpress and when I entered his profile the “Certificazione” field wasn’t empty and it had in fact something inside which is weird. I then updated this user by clicking “Update User” at the end of the page and when I checked back the database it wasn’t empty anymore and the MySQL code I used above now returns 0 which means it still can’t find the remaining users but the one I updated was registered in the database.
I still find this really confusing and i hope I can find someone to help me with this issue.
Cheers.
Thanks David,
I am sure it’s something simple as well and it’s really frustrating! I am sure someone with good PHP skill will be able to resolve this easily. I tried asking for a Quote from a third party agency Swiftideas suggested me about a week ago but they don’t take projects under 5K!!!
I have posted in several places now and I hope I find someone to hire and help me at an affordable rate.
Once again, thanks a lot for your time.
Hi David and thanks for your time.
1) I have used a plugin called “Import users from CSV with meta” to upload the csv file that contained the normal wordpress fields like username, first_name, last_name as well as custom fields (one of them was “Certificazione”). When users were imported the custom fields were created in the wordpress backend in the profile of each user. I personally went to phpMyAdmin database and checked if they were also imported there and they are in fact in there as well.
2) I have checked and I confirm that the field is Certificazione with capital “c”.
3) I haven’t tried this as the website is already live and I wouldn’t want to make an order at this time. As I mentioned the code works if I do an order with my admin account and it also works if I create a new user and make an order with this new account. I suspect that if I go to a user’s profile and I edit it and save it next time he/she makes an order the field will be displayed with the email but I can’t physically go through 4000 users and update them.
4) I haven’t tried that as I am not really familiar with PHP coding but I will give it a try. I have already posted in stackoverflow 10 days ago with no luck whatsoever. I have now created a bounty there to offer reputation in order for someone to help me faster.
One thing that came to my mind is that my client is running windows NT server. I read online that MySQL databases don’t behave properly when in windows servers. I read somewhere that you might have to convert them to .SQL but I am not sure if this is the case. What is your opinion on that? I will try and investigate further.
Thanks a lot for taking the time to answer this. I really appreciate it!
Thanks Rui,
Mark as resolved!
November 4, 2015 at 4:53 pm in reply to: How to achieve dashes before and after title like demo #225904Don’t worry Rui,
I found a different way to do what I wanted.
Thanks for your time.Ok I found it!
I had to click “Hide mega menu headings” from Parent Page.
Mark as resolved!I have added custom links with the columns but I am not able to hide the custom links from mega menu.
If you can tell me how to hide them my problem is finished as the width looks correct now.Hi Kyle,
I have enabled class field from screen options. I have tried adding the pages under ATTIVITA page but they all appear in one column. What I have done instead was to add the first page as a child of ATTIVITA and then 4 more pages as child of the ATTIVITA child page (a bit confusing to explain, see attachment). The problem with this is that the child page of ATTIVITA (basically the first row of each column) has different font.
I wanted 2 things:
1. To keep the same font in every column
2. To increase the margin of each column in order for a bit more text to be visible.Could you please help me with this?
Attachments:
You must be logged in to view attached files.Perfect!
I always forget to add important when something doesn’t work.
Thanks a lot Rui!
Mark as resolved. -