Move price below short description in Woocommerce single products [closed]WooCommerce - Replace Price with Variable Price on Single Product PageRemove Woocommerce Product Short Descriptionwoocommerce product excerpt description (short)limit woocommerce product short description in home page and category pageAdd content above the product short description on the product page in WooCommerceMove woocommerce category description below productsWoocommerce: Display Product Variation Description on shop catalog pageMove Add To Cart button and Variation Selector above product short description in WoocommerceSingle product category description using shortcodes in Woocommercewoocommerce variable product price not showing in shop page

Were any external disk drives stacked vertically?

Why does Kotter return in Welcome Back Kotter

A reference to a well-known characterization of scattered compact spaces

prove that the matrix A is diagonalizable

Can one be a co-translator of a book, if he does not know the language that the book is translated into?

Reserved de-dupe rules

What's the difference between 'rename' and 'mv'?

I'm flying to France today and my passport expires in less than 2 months

Is it unprofessional to ask if a job posting on GlassDoor is real?

How badly should I try to prevent a user from XSSing themselves?

Twin primes whose sum is a cube

I Accidentally Deleted a Stock Terminal Theme

UK: Is there precedent for the governments e-petition site changing the direction of a government decision?

Western buddy movie with a supernatural twist where a woman turns into an eagle at the end

Forgetting the musical notes while performing in concert

90's TV series where a boy goes to another dimension through portal near power lines

Alternative to sending password over mail?

How do conventional missiles fly?

What mechanic is there to disable a threat instead of killing it?

Why do I get two different answers for this counting problem?

Assassin's bullet with mercury

How to show the equivalence between the regularized regression and their constraint formulas using KKT

How to draw the figure with four pentagons?

Do I have a twin with permutated remainders?



Move price below short description in Woocommerce single products [closed]


WooCommerce - Replace Price with Variable Price on Single Product PageRemove Woocommerce Product Short Descriptionwoocommerce product excerpt description (short)limit woocommerce product short description in home page and category pageAdd content above the product short description on the product page in WooCommerceMove woocommerce category description below productsWoocommerce: Display Product Variation Description on shop catalog pageMove Add To Cart button and Variation Selector above product short description in WoocommerceSingle product category description using shortcodes in Woocommercewoocommerce variable product price not showing in shop page






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















I am using Woocommerce for a small online shop and using Movedo Wordpress theme by greatives.



I am trying to move the product price below short description in single product pages. I inserted the code in functions.php file of my child theme:



remove_action('woocommerce_single_product_summary', 
'woocommerce_template_single_price', 4 );
add_action('woocommerce_single_product_summary',
'woocommerce_template_single_price', 29 );


But it ends up displaying the price twice: single product page.



What I am doing wrong? Any help is appreciated.










share|improve this question















closed as too broad by ochi, thewaywewere, DebanjanB, greg-449, Billal Begueradj Mar 9 at 19:06


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


















  • To review and moderators: This question is not too broad, and the question provide some code. My answer took me 1mn… Please consider reopening the thread.

    – LoicTheAztec
    Mar 16 at 0:15

















1















I am using Woocommerce for a small online shop and using Movedo Wordpress theme by greatives.



I am trying to move the product price below short description in single product pages. I inserted the code in functions.php file of my child theme:



remove_action('woocommerce_single_product_summary', 
'woocommerce_template_single_price', 4 );
add_action('woocommerce_single_product_summary',
'woocommerce_template_single_price', 29 );


But it ends up displaying the price twice: single product page.



What I am doing wrong? Any help is appreciated.










share|improve this question















closed as too broad by ochi, thewaywewere, DebanjanB, greg-449, Billal Begueradj Mar 9 at 19:06


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


















  • To review and moderators: This question is not too broad, and the question provide some code. My answer took me 1mn… Please consider reopening the thread.

    – LoicTheAztec
    Mar 16 at 0:15













1












1








1


2






I am using Woocommerce for a small online shop and using Movedo Wordpress theme by greatives.



I am trying to move the product price below short description in single product pages. I inserted the code in functions.php file of my child theme:



remove_action('woocommerce_single_product_summary', 
'woocommerce_template_single_price', 4 );
add_action('woocommerce_single_product_summary',
'woocommerce_template_single_price', 29 );


But it ends up displaying the price twice: single product page.



What I am doing wrong? Any help is appreciated.










share|improve this question
















I am using Woocommerce for a small online shop and using Movedo Wordpress theme by greatives.



I am trying to move the product price below short description in single product pages. I inserted the code in functions.php file of my child theme:



remove_action('woocommerce_single_product_summary', 
'woocommerce_template_single_price', 4 );
add_action('woocommerce_single_product_summary',
'woocommerce_template_single_price', 29 );


But it ends up displaying the price twice: single product page.



What I am doing wrong? Any help is appreciated.







php wordpress woocommerce product hook-woocommerce






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 10 at 20:20









LoicTheAztec

96.2k1371113




96.2k1371113










asked Mar 8 at 23:24









Sayed totomobilSayed totomobil

114




114




closed as too broad by ochi, thewaywewere, DebanjanB, greg-449, Billal Begueradj Mar 9 at 19:06


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









closed as too broad by ochi, thewaywewere, DebanjanB, greg-449, Billal Begueradj Mar 9 at 19:06


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.














  • To review and moderators: This question is not too broad, and the question provide some code. My answer took me 1mn… Please consider reopening the thread.

    – LoicTheAztec
    Mar 16 at 0:15

















  • To review and moderators: This question is not too broad, and the question provide some code. My answer took me 1mn… Please consider reopening the thread.

    – LoicTheAztec
    Mar 16 at 0:15
















To review and moderators: This question is not too broad, and the question provide some code. My answer took me 1mn… Please consider reopening the thread.

– LoicTheAztec
Mar 16 at 0:15





To review and moderators: This question is not too broad, and the question provide some code. My answer took me 1mn… Please consider reopening the thread.

– LoicTheAztec
Mar 16 at 0:15












1 Answer
1






active

oldest

votes


















1














You are not targeting the right hook priority when using remove_action()… Try this instead:



add_action('woocommerce_single_product_summary', 'move_single_product_price', 1);
function move_single_product_price()
remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_price', 10);
add_action('woocommerce_single_product_summary', 'woocommerce_template_single_price', 29);



It should only display one price only in the new desired location.



Code goes in function.php file of your active child theme (or active theme).






share|improve this answer

























  • Hi @LoicTheAztec Thank you for your reply. I replaced my code by yours. alas it does not change anything. I appreciate your intention to help me.

    – Sayed totomobil
    Mar 9 at 9:12












  • As I have the same value for (..hooked woocommerce_template_single_rating - 10) (..hooked woocommerce_template_single_price - 10) I wondered if it create a conflict single_rating/single_price. But No.

    – Sayed totomobil
    Mar 9 at 9:14











  • Can it come from a modification in the parent theme by the theme editor? Or can an entry in the database not reset?

    – Sayed totomobil
    Mar 9 at 9:14











  • I added the code above. it does not work. I always have twice the price, one up and the other down. Thank you @LoicTheAztec for your time.

    – Sayed totomobil
    Mar 9 at 10:23











  • I confirm: the text appears on the pages of my site. I misunderstood. I thinked this text will replace the price.. The text du test : appears

    – Sayed totomobil
    Mar 9 at 12:45

















1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














You are not targeting the right hook priority when using remove_action()… Try this instead:



add_action('woocommerce_single_product_summary', 'move_single_product_price', 1);
function move_single_product_price()
remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_price', 10);
add_action('woocommerce_single_product_summary', 'woocommerce_template_single_price', 29);



It should only display one price only in the new desired location.



Code goes in function.php file of your active child theme (or active theme).






share|improve this answer

























  • Hi @LoicTheAztec Thank you for your reply. I replaced my code by yours. alas it does not change anything. I appreciate your intention to help me.

    – Sayed totomobil
    Mar 9 at 9:12












  • As I have the same value for (..hooked woocommerce_template_single_rating - 10) (..hooked woocommerce_template_single_price - 10) I wondered if it create a conflict single_rating/single_price. But No.

    – Sayed totomobil
    Mar 9 at 9:14











  • Can it come from a modification in the parent theme by the theme editor? Or can an entry in the database not reset?

    – Sayed totomobil
    Mar 9 at 9:14











  • I added the code above. it does not work. I always have twice the price, one up and the other down. Thank you @LoicTheAztec for your time.

    – Sayed totomobil
    Mar 9 at 10:23











  • I confirm: the text appears on the pages of my site. I misunderstood. I thinked this text will replace the price.. The text du test : appears

    – Sayed totomobil
    Mar 9 at 12:45















1














You are not targeting the right hook priority when using remove_action()… Try this instead:



add_action('woocommerce_single_product_summary', 'move_single_product_price', 1);
function move_single_product_price()
remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_price', 10);
add_action('woocommerce_single_product_summary', 'woocommerce_template_single_price', 29);



It should only display one price only in the new desired location.



Code goes in function.php file of your active child theme (or active theme).






share|improve this answer

























  • Hi @LoicTheAztec Thank you for your reply. I replaced my code by yours. alas it does not change anything. I appreciate your intention to help me.

    – Sayed totomobil
    Mar 9 at 9:12












  • As I have the same value for (..hooked woocommerce_template_single_rating - 10) (..hooked woocommerce_template_single_price - 10) I wondered if it create a conflict single_rating/single_price. But No.

    – Sayed totomobil
    Mar 9 at 9:14











  • Can it come from a modification in the parent theme by the theme editor? Or can an entry in the database not reset?

    – Sayed totomobil
    Mar 9 at 9:14











  • I added the code above. it does not work. I always have twice the price, one up and the other down. Thank you @LoicTheAztec for your time.

    – Sayed totomobil
    Mar 9 at 10:23











  • I confirm: the text appears on the pages of my site. I misunderstood. I thinked this text will replace the price.. The text du test : appears

    – Sayed totomobil
    Mar 9 at 12:45













1












1








1







You are not targeting the right hook priority when using remove_action()… Try this instead:



add_action('woocommerce_single_product_summary', 'move_single_product_price', 1);
function move_single_product_price()
remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_price', 10);
add_action('woocommerce_single_product_summary', 'woocommerce_template_single_price', 29);



It should only display one price only in the new desired location.



Code goes in function.php file of your active child theme (or active theme).






share|improve this answer















You are not targeting the right hook priority when using remove_action()… Try this instead:



add_action('woocommerce_single_product_summary', 'move_single_product_price', 1);
function move_single_product_price()
remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_price', 10);
add_action('woocommerce_single_product_summary', 'woocommerce_template_single_price', 29);



It should only display one price only in the new desired location.



Code goes in function.php file of your active child theme (or active theme).







share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 9 at 10:57

























answered Mar 9 at 8:35









LoicTheAztecLoicTheAztec

96.2k1371113




96.2k1371113












  • Hi @LoicTheAztec Thank you for your reply. I replaced my code by yours. alas it does not change anything. I appreciate your intention to help me.

    – Sayed totomobil
    Mar 9 at 9:12












  • As I have the same value for (..hooked woocommerce_template_single_rating - 10) (..hooked woocommerce_template_single_price - 10) I wondered if it create a conflict single_rating/single_price. But No.

    – Sayed totomobil
    Mar 9 at 9:14











  • Can it come from a modification in the parent theme by the theme editor? Or can an entry in the database not reset?

    – Sayed totomobil
    Mar 9 at 9:14











  • I added the code above. it does not work. I always have twice the price, one up and the other down. Thank you @LoicTheAztec for your time.

    – Sayed totomobil
    Mar 9 at 10:23











  • I confirm: the text appears on the pages of my site. I misunderstood. I thinked this text will replace the price.. The text du test : appears

    – Sayed totomobil
    Mar 9 at 12:45

















  • Hi @LoicTheAztec Thank you for your reply. I replaced my code by yours. alas it does not change anything. I appreciate your intention to help me.

    – Sayed totomobil
    Mar 9 at 9:12












  • As I have the same value for (..hooked woocommerce_template_single_rating - 10) (..hooked woocommerce_template_single_price - 10) I wondered if it create a conflict single_rating/single_price. But No.

    – Sayed totomobil
    Mar 9 at 9:14











  • Can it come from a modification in the parent theme by the theme editor? Or can an entry in the database not reset?

    – Sayed totomobil
    Mar 9 at 9:14











  • I added the code above. it does not work. I always have twice the price, one up and the other down. Thank you @LoicTheAztec for your time.

    – Sayed totomobil
    Mar 9 at 10:23











  • I confirm: the text appears on the pages of my site. I misunderstood. I thinked this text will replace the price.. The text du test : appears

    – Sayed totomobil
    Mar 9 at 12:45
















Hi @LoicTheAztec Thank you for your reply. I replaced my code by yours. alas it does not change anything. I appreciate your intention to help me.

– Sayed totomobil
Mar 9 at 9:12






Hi @LoicTheAztec Thank you for your reply. I replaced my code by yours. alas it does not change anything. I appreciate your intention to help me.

– Sayed totomobil
Mar 9 at 9:12














As I have the same value for (..hooked woocommerce_template_single_rating - 10) (..hooked woocommerce_template_single_price - 10) I wondered if it create a conflict single_rating/single_price. But No.

– Sayed totomobil
Mar 9 at 9:14





As I have the same value for (..hooked woocommerce_template_single_rating - 10) (..hooked woocommerce_template_single_price - 10) I wondered if it create a conflict single_rating/single_price. But No.

– Sayed totomobil
Mar 9 at 9:14













Can it come from a modification in the parent theme by the theme editor? Or can an entry in the database not reset?

– Sayed totomobil
Mar 9 at 9:14





Can it come from a modification in the parent theme by the theme editor? Or can an entry in the database not reset?

– Sayed totomobil
Mar 9 at 9:14













I added the code above. it does not work. I always have twice the price, one up and the other down. Thank you @LoicTheAztec for your time.

– Sayed totomobil
Mar 9 at 10:23





I added the code above. it does not work. I always have twice the price, one up and the other down. Thank you @LoicTheAztec for your time.

– Sayed totomobil
Mar 9 at 10:23













I confirm: the text appears on the pages of my site. I misunderstood. I thinked this text will replace the price.. The text du test : appears

– Sayed totomobil
Mar 9 at 12:45





I confirm: the text appears on the pages of my site. I misunderstood. I thinked this text will replace the price.. The text du test : appears

– Sayed totomobil
Mar 9 at 12:45





Popular posts from this blog

Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

Understanding generators in Python2019 Community Moderator ElectionGenerator function not working pythonFor loop not executing two timesGenerators - Printing generated valuesWhy can a python generator only be used once?What exactly do generators do?What does the “yield” keyword do?What does “list comprehension” mean? How does it work and how can I use it?sklearn Kfold acces single fold instead of for loopIs a generator the callable? Which is the generator?Apply Border To Range Of Cells Using OpenpyxlCalling an external command in PythonWhat are metaclasses in Python?What is the difference between @staticmethod and @classmethod?Finding the index of an item given a list containing it in PythonDifference between append vs. extend list methods in PythonHow can I safely create a nested directory in Python?Does Python have a ternary conditional operator?Understanding slice notationUnderstanding Python super() with __init__() methodsDoes Python have a string 'contains' substring method?

How can I change the color of pagination dots of UIPageControl?How to change UIPageControl dotsIs there a way to change page indicator dots colorCustomize dot with image of UIPageControl at index 0 of UIPageControlNo visible @interface for 'NSObject<PageControlDelegate>' declares the selector 'pageControlPageDidChange:'How to change the color of pagination dots in UIPageControl with a different color per pagepagecontrol indicator custom image instead of DefaultChanging the colour of UIPageControl dots in MonoTouchpagecontrol selectable page visibility color?Alternative way to load ViewControllers on a UIPageControlHow to set only layer.border-color for UIpage control dots in swiftHow can I develop for iPhone using a Windows development machine?How to change the name of an iOS app?UITableView - change section header coloruipagecontrol indicator(dot)issueCustom UIPageControl dots color not changingchange the interspace between UIPageControl dotsHow to change Status Bar text color in iOSHow can I change image tintColor in iOS and WatchKitUIPageControl dots with larger space in between each dotsHow to change the color of pagination dots in UIPageControl with a different color per page