Editing text generated by WooCommerce - javascript

First time to ask a question here.. I searched and searched for the answer but it's a pretty niche question and difficult to google, so here I am.
I have a wordpress theme using woocommerce and in the "cart" page there is a section at the bottom left that calculates the cart totals. Underneath this section is a portion of "fine" print that says "Note: Shipping and taxes are estimated (taxes estimated for the United States (US)) and will be updated during checkout based on your billing and shipping information."
I'm looking for the correct file to edit this piece of text, basically I want to remove the "(US))" portion. I have searched through the plugins directory and many of the theme and woocommerce javascript and css files but haven't been able to find where/how this is generated.
Any help is appreciated, thanks!

You need to change the location in WooCommerce->Settings->Base Location. Alternatively you can use the following command in linux to find a string in a load of documents.
grep -rnw 'directory' -e "pattern"

This should be the path
/wp-content/plugins/woocommerce/templates/cart/totals.php

Changing the template files might cause you issues if/when you upgrade Woocommerce. I'd recommend putting a filter in your theme's functions.php file.
I think the filter hook might be 'woocommerce_after_cart_totals' but you'll have to test it out to find the correct output.
Here's a primer on Woo filters & actions:
http://docs.woothemes.com/document/introduction-to-hooks-actions-and-filters/
And here's a list of all the actions & filters available:
http://docs.woothemes.com/document/hooks/

Related

Advanced Customization of Alfresco

I am having trouble figuring out how to do even the simplest things in Alfresco, like typing a simple document. I've been Googling and noticed that customizations can be done through HTML documents. I need help and decided to post a question to a knowledgeable user platform. THe following customizations I would like are WAY far fetched and most likely not even achievable, but any help that can be provided I would really appreciate.
*list items in bold are most important
Anyone could be assigned a login and when they logged in they would have access to and easily view all of the contents of the site (or multiple sites that make up one accessible website?)
All of the items on the website would be a hierarchy, the user facing contents of the site would be a list of links with thumbnails, when one link was clicked it would be another list of links with large thumbnails, when one of those links was clicked a text document would be brought up, that document would contain clickable sections, when one of those sections was clicked it would bring up a page only containing the section clicked:
Links (crafts)
2nd layer of links (modules)
Text and image document with clickable links (single module containing clickable sections)
Section (single sections of module)
The module and section text would also contain images and tables throughout and mixed in the text
If a link (module or section) was used in multiple places all instances of the link would be linked to each other. If on instance was edited, the other would also change. THis setting could be turned off for any individual link if necessary.
Every document should have an easy to use live commenting system (something simple like Disqus would work) The comments are the most important on the single section pages but would also be good on the module page
An advanced tagging system that would be part of the entire site/website environment. A user could type anything they wanted as a tag and use multiple tags. The tags would be used for their comments on the content (text, sections) but the tags could be searched (most importantly by the administrators of the site) at any time in the whole environment. A popularity of any tag could also be viewed (I'm not sure how that would work, possibly another section of the site or an easy to see column on any text/image document?)
A user could edit their own comment if they wished but would not be able to delete it entirely. Comments would also be date and time stamped.
I know all of this is most likely impossible but if anyone has an idea of Alfresco customizations that could pull any of this off, or of an entirely different secure platform or site that would perform anything similar to this please let me know.
Thank you!
It sounds like you are looking for a Web Content Management (WCM) System. Alfresco is a Document Management (DM) System. You can use Alfresco as a back-end for a custom content-centric solution, but if you are expecting to install it, start it up, and have anything close to what you've listed above, you are barking up the wrong tree.
Everything you've listed is a front-end concern. You can use whatever you want to develop that functionality, but none of it will leverage Alfresco unless you choose to store some of the data in the Alfresco back-end.
You might be better off looking at something in the WCM space, such as Drupal or Wordpress. Or if you want something Java-based, look at Magnolia CMS or Hippo CMS.

Full-Calendar-Plugin Change Table

I have a small question. In my Cakephp 3.6 project I used the CakePHP-Full-Calendar-Plugin plugin from curtisblack2004.
https://github.com/curtisblack2004/CakePHP-Full-Calendar-Plugin
I installed the plugin and everything works fine. I want to change the name of the table from "events" (used in the plugin) to "lessons" and completely change the structure. Where can I do that? Can someone help me ? Maybe it's a trivial thing to do, but I'm stuck and I do not know how to continue.
As I see in the repository of plugin, you may follow these quick steps:
1- change the tables names in the sql found here
2- change your models/controllers names based on that.
example, if your your events tables becomes >lessons>, then in controller folder, EventsController.php should become LessonsController.php. You need to rename Everything related to Events into Lessons, in differents folders.

Magento checkout buttons gone

I have a problem with my Magento 1.9 CE webshop.
When you order products the next button is not showing up on the checkout page, nor orders can be placed.
Things i have tried so far:
I installed a one page checkout plugin to see if this will work, it doesn't.
When you click on the "Place order now" button it rederects back to the one page chekout overview page.
I uninstalled all 3rd party plugins via magentoconnect, still no succes.
used the default theme to check if the checkout process will go true, also no succes.
used the original prototype.js file, because via firebug i noticed some errors on this file. also no succes.
i have been googling for 4 days now trying to search for a solution, but i cannot find the problem, there are a lot of solutions for checkout problems but none of them seem to work or are simmilar to my issue.
Is there annyone who can maybe help me out?
I also have a cookie notice when visiting the site, can also not click on agree to make it dissapear, i have a feeling this is related to the checkout problem.
The URL of the webshop is: https://www.pepstore.nl
any help would be very much appreciated!

Wordpress theme, best way to find code location

So I have a Wordpress theme & need to replace the logo upon scrolling down.
Should be simple enough but after hours of sifting through code and testing, no dice.
Could anyone tell me the best way to view the front end of a production website and follow the code through to the correct location in the files/code?
I am using FileZilla & Notepad ++, have followed file names and searched for elements.
Thank you in advance.
All your theme files are located in /wp-content/themes/your-theme-name/
Go to the folder for your current, active theme - you can either search for the elements after inspecting them in your browser, or you can learn a little about WordPress template hierachy so that you can expect where to find which block/snippet of code that you are trying to edit.

Woocommerce won't add products to cart

I'm not sure what I did to break this because it was working fine for a while but I can no longer add products to the WooCommerce cart in the site I'm working on. On every attempt I get the "Please choose product options" message in return.
I have a selected price for each variable yet it still doesn't work. I'm thinking it could have something to do with the quantity selector of that could possibly not be going through.
There may also be a conflict with some jQuery libraries and I have been told to check for errors but I have tried countless times to approach this and I just can't find the solution and this really needs to be fixed as soon as possible.
Any information or help anyone can provide would be greatly appreciated.
Here's an example page of a product to test it
http://www.coreytegeler.com/bolivares/shop/marquez-button-down-cardigan-2/
I had the same problem and fixed it. It was a caching issue on my host. Once they excluded certain sessions/cookies to be cached (on server side) all started to work again.
Did it work okay before you upgraded to the latest version of Woocommerce?
<!-- WooCommerce Version -->
<meta name="generator" content="WooCommerce 2.0.3" />
Woo recently did a major upgrade to their ecommerce engine, and it may need tweaking to work with your current theme.
One thing you can test is to temporarily switch to a different theme which is known to work with the up-to-date woocommerce, e.g. http://www.woothemes.com/products/mystile/ which is a free theme from the Woo folks themselves.

Categories