Is it possible to implement this design for woocommerce? [closed] - php

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have this design that I want to implement: it has this button to show recommended bases for that specific product. When I google about customizing woocommerce, all I get are tutorials on how add stuff around it, using newbie friendly tools, such as elementor, but I want to work in it, adding a feature to it.
For my layman eyes, it seems like a very simple interaction: you click on a button, and it adds some elements to the page. However, since woocommerce's cart is implemented on the page through a shortcode, not an html file or whatever, I can't just edit it like I do with most stuff. I know that I have to edit some php file somewhere in the plugin's directory.
So, what I would like to know is first: is that even possible? Because I really don't want to spends days learning to code php just to find out this feature was never even a possibility to begin with.
And second: is there anything in particular I should learn to be able to do this?
Sorry if this doesn't make sense, and thank you for the attention. :)

You can do this. You would have to build a new 'template part' to replace the cart template that outputs what you're seeing in the video you posted.
A full list of all of the template parts for the WooCommerce cart view is here:
https://github.com/woocommerce/woocommerce/tree/3.8.0/templates
There's a really straightforward breakdown of how to override default WooCommerce templates here:
https://docs.woocommerce.com/document/template-structure/
The shortcode that goes into the page utilizes these template parts to generate the content you end up seeing on the front end.
I think the file you'd be looking to override is this one, but still, take a look at all of them and confirm that's the case:
https://github.com/woocommerce/woocommerce/blob/3.8.0/templates/cart/cart-item-data.php
I suspect you could use the WooCommerce related products and upsell functionality to populate the list.

Related

Rate and review system for wordpress website [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I have a professor Rate and review website for Lebanese universities. I have created a new rating system with animation on bubble.io ( https://professor-advisor.bubbleapps.io/version-test?debug_mode=true )
but I want to implement it on Wordpress. Is it possible to have such custom fields? and also is it possible to have the same animations? (hover and click colors and texts)
Of course you can achieve it. It may be a longshot, but:
download their CSS files
download their JS files
look at the page-source
Working on your Wordpress theme implement the same HTML as you had on bubble. You do not necessarily need to reuse their code in all cases. When you know how a given design element or animation can be achieved, feel free to implement yourself. When not, then look at some properties on their tags, like classes and so. Search for the identifiable properties of the element you are working on at a given point in the CSS and JS files. See what happens with them. Try removing classes and CSS rules, see what happens. This way you can gradually find out what code is responsible for what element. But it may be a long process.
Alternatively you could implement something similar on your own. I like this option better, because, even though you will face some difficulties while doing so, once you are done you will be familiar with your own code and will be able to customize it later if needed.

WordPress - How much of your sites content should be generated dynamically? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
I've been playing around with theme development in WordPress for a couple months now. I often find myself wondering how much of the sites content should be customizable by the client. Is it ok to have fixed html in your theme or should everything be generated dynamically?
If so, which WordPress features would you utilize in achieving a completely customizable web site for a client?
Ex: - all buttons registered as widgets?
- all headings and subheadings brought in dynamically?
etc.
Any thoughts on this topic are welcomed.
Thank you,
This is a slightly broad subject as the answer will differ for different project requirements. Some projects will require a full CMS blog where the customer can edit every aspect of their website. Whereas, other websites may just want a website built on wordpress (but the customer will never update information). I personally prefer to make everything editable by the customer. Reason for this is; when they ask to change a specific thing on the website, you can refer them to the backend and teach them how to do it themselves. This in the long run will make your job easier due to less 'can you do this' phone calls.
Also, a plugin i highly recommend to make a much easier CMS system within wordpress is ACF or Advanced custom fields. This allows you to add custom fields to pages, categories, posts (almost anything). Another plugin which i would recommend is the Custom Post Type (CPTUI) module. This allows you to make a custom post type to make editing easier. For example, you can create a post type call films. When the customer wants to add another, on the admin panel they will see 'Films' > Add Film.
Use the backend. Make everything an article or a page.

Membership site with PHP and MySQL [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I have a html site, and I have a page that acts as a bio for users (which I currently have to update by hand with html).
I want to create a membership login page, and I want users to be able to input their own data, that in turn updates their bio page automatically. With an option to upload images.
I read up and looks like php and mysql is the way to go, which I know nothing about. Is that the right route? Or is there an easier way?
Kick me in the right direction to get that setup please? I'm lazy and don't want to spend months figuring out how everything works just to setup one page...
Do not try to write everything your own.
If you only want the result fast, find some mature CMS to start from. Try Drupal or Wordpress.
If you want more control and not afraid to fight with code, try framework like Laravel or Symfony. Learn as much APIs as possible from the framework.
I would look into Wordpress. They offer hundreds of thousands of plugins that can achieve advanced functionality without writing any code.
Here is a Wordpress plugin called Ultimate Member that looks like it would achieve your desired functionality.

Writing articles in wordpress website? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
First of all to say that I'm new and I do not know many things about coding.
In recent days I have locally installed Wordpress and reviewed the options, but one thing worries me now.
Specifically, I want to open a website with a variety of articles, and I do not know whether to format text using shortcodes, or is it best to just do a visual editing.
I started with shortcodes in functions, but, it seems a bit too much for me as I am alone working on website.
Too many shortcodes somehow confuses me.
I do not know now whether to continue to create shortcodes, or to work with visual editor in plain html.
Please help me.
Thank you.
From experience short-codes are short-sighted. When you redesign or get rid of shortcodes all your old articles will show them and the designs will be broken.
I think shortcodes are a shortcut you don't want to take if your seriously trying to build content. In the long run they will hurt you.
But, if your just messing around with wordpress or causally blogging, short code away :).
I personally think best practice is to learn HTML, CSS and use that to build interesting content in your articles... Supporting legacy CSS is easier, if you know your creating very specific designs in your article then write the css in the article it-self using <style> tag.
That's my opinion at least.

Wordpress integration [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
The wordpress is such a great tool. I'm wondering if it will be a problem to start adding sections at some point, nothing to do with the blog, just sections for the site with different functionality ( say a database of searching stuff ) perhaps also incorporate and let user reistered through the word press database with the other featues in the site?
What should I need to know for this? will it be OK?
Some firm knowledge of PHP will allow you to write your own Wordpress plugins,
see this (Wordpress: Writing a plugin) page for more information.
There is also a 5 minute video tutorial about writing your first plugin which can be found here
You should try PodsCMS as a way of expanding on top of your vanilla Wordpress install. It's got a great interface, great tutorials, and the developers are always more than willing to help.
You can literally do just about anything with PodsCMS, especially with a good working knowledge of PHP and WordPress' workflow.
I've found the Wordpress plugin Magic Fields really useful for adding cms style features on Wordpress Pages. It may give what you want.
You can modify the wordpress pages if you want it integrated in the blog, or add new things on other pages.
Are you asking if you can use the wordpress login info for other sections of your site?

Categories