Magento 1 schema markup - schema

Need a little help. Can anyone guide me on how to add schema mark-up code to magento 1 website? I tried to search it on YouTube but didn't find anything helping
Schema type : Product
Website niche: E-commerce
Please help. Thanks in advance!

I'm sure I don't have to tell you that Magento 1 is now officially deprecated since over a year now, but I do just in case!
To add tags from schema.org, you need to add the proper tags in the .phtml files copied into yout theme directory as you shouldn't edit core files. The templates usually copied are these ones:
app/design/frontend/[package]/[theme]/template/catalog/product/view.phtml
app/design/frontend/[package]/[theme]/template/catalog/product/view/media.phtml
app/design/frontend/[package]/[theme]/template/catalog/product/view/type/default.phtml
app/design/frontend/[package]/[theme]/template/catalog/product/price.phtml
But maybe some other templates are to be edited in your theme, depending on how the theme is set up.
Then, edit each .phtml files to add the necessary tags that you need. Save the files and empty Magento cache, as well as your browser cache.
You can test the work done using Google's structured data testing tool (https://search.google.com/structured-data/testing-tool/u/0/).
This guy here has a good tutorial on how to do it: https://www.groovecommerce.com/ecommerce-blog/developers-toolbox-adding-rich-snippets-to-magento-products-with-schema-org-tags/

Related

Adding manual schema (rich snippet) code to wordpress website( template) without yoast

we are working on SEO for one of the content related (article, videos) website and using wordpress template to build the website. Now if I use yoast generated schema the standard webpage schema is being used to all the pages which I really don't want and won’t be useful. I need to insert the schema according to the page category that can be manually coded (json-ld) or using any plugin that supports category wise schema uploading.
Please help me how to add schema code manually to wordpress website each page or any plugin that will help me to do the same.
you can use to Custom Fields.
you need add your schema code to article and Video Custom field and choose that on every post.

Custom Spartacus site

i had created new wcms custom site along with content and product catalogs by creating similar extension as electronicstore, my extension name is dastore. for this site i want to create new spartacus site similar to electronics-spa.
in spartacussampledataaddon, i had followed impex files of electronics store and created all the necessary folders and files. Modified SpaSampleAddOnSampleDataImportService.java to consider my custom site also for import.
after build and startup, ran an update by selecting "dastore" and "spartacussampledataaddon".
But still my impex files were not considered for execution.
Please help.
We need to run update including dastore, spartacussampledataaddon, addonsupport(if you have impex on any of your addon, you need to include this, then your addon impex will be part of sample data and core data events)

Shopify Interact with product page HTML via app

We plan to create a Shopify app but we face some problems to find in documentations how to interact with pages.
I`m not sure we must ask every time users to add codes and etc, so I need to know if I miss something.
I need to interact with the product pages in Shopify from an app.
I search and read all the web for this and everything is how to start but not the actual examples.
I know for the ScriptTags and how to include them but that is.
If someone can give me a simple example of how for example to hide the Buy button and insert something on instead.
I know how to select it with the default theme with JQuery but what about all other themes?
There are two ways to interact with the front page:
1) Inject some code in the page ( the live one )
2) Use ScriptTag as you mentioned.
The code injection script will modify the product template for example and inject your code if you like to do this automatically or you can instruct the user to do so on their own, but if they are not code savvy there might be issues.
In addition this code will live only on the live theme in most cases. And if the user likes to delete your app at a specific time you must be sure to write the logic in such way that it won't affect the site if your app is no longer present ( since it will be really hard to clean up the files once you add the code automatically )
For this approach you will need to use the Asset API.
You will need to get the content of the file with a GET request to the file and make a put request in order to update it.
The better approach is to use ScriptTag API.
This will allow the use of a script file that will be attached on EVERY theme. This will not modify the theme files in any form or shape.
It seems that this is the approach that you are looking for.
Please have in mind that you will be the one hosting the file from your app so pretty much you can write what ever you like there. So if you like to use jQuery you must be sure that the themes have included jQuery or you will have to add the jQuery core code inside your script.
As for how to write a script tag, there is a pretty straightforward documentation here: https://help.shopify.com/en/api/reference/online-store/scripttag#create-2020-01

Joomla: Allowing a user to upload an image

Alright so I learned that to have an upload button on a page, what you do is basically call a php file (call is upload.php) that would upload a file to the server. I have no idea where I am supposed to put the php file inside the server so I can call it.
I feel stupid because I can't find any answers online. I am getting very frustrated and confused because I am told I need to create a database but I have no idea how to edit a database in Joomla. I took a class in SQL so I don't have to learn about that. I just don't know where it is. I was also told I need to make a component. But this is confusing because all I want to do is have an upload button that will upload an image to the server.
I understand your frustration. I've got the basic idea on what you are trying to do. Here are a couple of options:
You might wanna take a look at Joomla! Extensions Directory ™. You might just find there a component or a module that already does this for you.
If you want to do it on your own, than you need to create a small module or a component inside Joomla! Please refer to the Joomla! Documentation or tutorials on this topic. Please note that you won't get this working instantly, because you first need to understand how Joomla! works. So your upload.php file will go in your module / component files. I don't think you need to do any SQL.
Now the part with "allowing a user" is a bit confusing... you want to "allow" any user to upload things to your server or just let's say, registered users? Generally uploading scripts need to be very strong from the security point of view. If this is the case, that you need to do a search for Joomla! ACL
You can simply create a form and add the "media" field type.
http://docs.joomla.org/Standard_form_field_types
You can also opt for the "file" field types to allow different types of fields.
Both fields can be added using the Joomla Component Creator: http://www.notwebdesign.com/joomla-component-creator/
And you might also want to take a look at K2 which has an excellent image upload functionality that allows scaling of images into three different sizes.

Can I use/adapt the Kohana userguide module to create help pages for my application?

I'd like to create a userguide for the application I'm building using the Kohana framework, and I'm wondering if there's a way I can use the Kohana userguide module for this purpose.
I understand how to add userguide info for new modules that I create, and how to include my classes in the API, but I want to build a second, separate userguide for the actual application user, as opposed to the app developers.
At first, I thought I'd just try adding app help pages to the main userguide at APPPATH/guide. I tried adding a "application/guide" directory, and put a file in there called menu.md, but that just ended up replacing the Kohana menu in the userguide. After renaming the file to menu.myapp.md, it doesn't show up at all.
So then it occurs to me that I could simple edit modules/userguide/guide/menu.md to add sections for my app, and likewise add markdown files for each app component. But really it would be much better to have a completely separate userguide for app users since the Kohana documentation isn't relevant for them.
What's the best way to go about this? Should I create a duplicate of the entire userguide module and modify the routing, &c.? Or is there some way to set up both userguides using the one version of the module? Or am I barking up the wrong tree altogether? Is there some other module/approach that would be better for building "Help" pages for the app?
Thanks in advance for your help!
Yes, you can make docs for your application with the userguide. If you want examples, check out these links:
https://github.com/zombor/Auto-Modeler/blob/master/config/userguide.php
https://github.com/zombor/Auto-Modeler/tree/master/guide/auto-modeler
Note that you'll still get "api docs" and everything else, unless you change the config to hide them.