How to create content section in xcart? - x-cart

How we can create content section in xcart like we create in wordpress via widget ? is there any option like this ? i want to make home page with 4 section with image content and link them to particular page .

This differs depending on X-Cart version. There are two major versions now: X-Cart 4 and X-Cart 5. They are very different and in order to give you any advice it is better to now what X-Cart version you are using.

Alex Mulin is right, it's kinda difficult to answer your question without such specific info as your X-Cart version. Yet I'll try to. In both cases the webmaster mode can help you do the trick. See video tutorials below.
Webmaster mode in X-Cart 4 :
https://www.youtube.com/watch?v=9QrpH4cQGpE
Webmaster mode in X-Cart 5:
http://devs.x-cart.com/en/webinars_and_video_tutorials/using_webmaster_mode_in_x-cart_5.html
If they don't work for you for some reason, try to ask the same question but be a bit more specific, or at least provide the store URL and I will be able to check the version.

What you are trying to do is skin-dependent and each skin has its own sections.
In order to find the files that you need to edit, go to Admin Panel>Settings>General Settings>Enable debugging console and check its box.
When checked, if you open your store, it opens a popup that that shows you the smarty templates loaded (make sure your browser does not block popups).
You can then change the smarty template files in order to add whatever you want. If you are not familiar with them, they are basically extended HTML files with some basic commands (if/for/etc.) and you can get stuff from PHP files in them as well. You can use xcart webmaster mode to edit those files too as mentioned by other answers.
This video can also be useful for you: https://www.youtube.com/watch?v=vN__DZrNrRM (X-Cart - Storefront Design and Layout)
And here's some XCart documentation on how to customize store front and skins:
http://help.x-cart.com/index.php?title=X-Cart:Customizing_storefront
http://help.x-cart.com/index.php?title=X-Cart:Editing_Skin_Files

Related

opencart checkout not expand,just show the 6 steps

Hi i have problem with opencart 1.5.6.4,my checkout dont like to expand and to show register or login when you proces to buy the product just,show the 6 step whit out to expand,The buttons at the one-page checkout are not expanding. If u visit this link: http://imeibox.com/index.php?route=checkout/checkout u can see there is not button are not doing anything, so we cannot fill in any information or select any options. Is there a simple solution for this problem or is there bad coding behind those buttons?
kind regards
GEORGI
Well this looks like it could be anything.
First thing that comes to mind,have you added a Jquery library to the header.tpl file recetly? if you have,there's your problem.
Try some checkups to see where the issue is coming from
1:turn off the theme you are using and check the cart again
2:Turn off any new modules you have installed
3:check your error log,and see what you have there,dont forget to check the vqmod/logs
usually that area of opencart works without a problem.so its either some code you did,the theme you are using or a bad module
DO not forget to do a backup before you do anything

How to add custom menu in Sitecore menu list

i want to add my custom application name in Sitecore Start Menu List, i'm following this article :
Adding Application Shortcut
it saying use Core database i'm using this, i couldn't find Layout studio, can any sitecore developer suggest me how to find this and finish my job. Thanks in advance.
I think the instructions you've linked to there are out of date. I've not seen that bit of UI in recent releases of Sitecore.
Working in Sitecore 6.6 I've successfully made custom applications using these instructions:
http://sdn.sitecore.net/Articles/Customizing%20Sitecore%20Client/Adding%20an%20Application%20Shortcut/Creating%20an%20Application.aspx
But beware the issue that I've blogged about here. The recent revisions of Sitecore subtly break the configuration defined above, and you have to manually edit out a file extension to make everything work:
https://jermdavis.wordpress.com/2014/10/20/a-gotcha-with-custom-applications/
-- Edited to add --
Based on the "it doesn't work in 7.5" comment below, I've tried these instructions on a test instance of Sitecore 7.5 rev 141003. It seems 7.5 behaves slightly differently - but I can still make it work.
Create the item under /sitecore/content/Applications using the external link button for the "Application" field. With raw values displayed, it should look something like:
And then create your application shortcut under /sitecore/content/Documents and settings/All users/Start menu using an internal link for the Application field. I found this still added the '.aspx' extension mentioned in my blog post, but I also found that editing it out again didn't work - it reappeared as soon as I hit save. I needed to edit out the extension from the link data using the Raw Values view in order to get the data shown below:
With those things set up, refreshing the page caused the test item to appear on my start menu:
Hopefully that works for you too?
-- Further edited to add --
New blog post covering this problem in Sitecore 7.5:
https://jermdavis.wordpress.com/2015/01/19/gotchas-with-custom-apps-v2/
Which version of Sitecore are you using? The Layout Studio is probably one of the least features in Sitecore, and personally not something I have ever used.
Instead you should create the the layout in Visual Studio - which then means your layout can be added to your Source Control System. Then follow the instructions in the link in Jeremy's answer.
If you do need to access the Layout Studio for some reason you can find it under: Sitecore menu > Development Tools > Developer Center. From there you can create new files/open existing files.

How to hide the template name?

this is my local site: drupaltest1/
When I/anyother developer inspect my site they can recognize which theme I am using. I want to hide the theme being displayed on inspect elements an display the site name in the path. I searched google, but no luck. Anyone please help in achieving this.
Thanks in advance
You could change the name of the theme to your sitename.
in sites/all/themes/ copy your theme folder and rename the folder
then replace the theme name in .info file and use find/replace in template.php and any other theme specific files as well. (notepad++ search in files works well)
upload and enable the new theme in Drupal
If you are not using a custom theme for your site, be sure to check the licensing/copyright to ensure renaming it isn't a violation - and updates may have issues so you could remove the project info and/or packing script info.
If you can create a sub-theme, then you would be able to hide those info(s) from being inspected your site pages.
Please reply if this helped you.
https://www.drupal.org/node/1010576
https://www.drupal.org/node/225125

Sitecore Broken Links and Content Editor Issues

We've been noticing an increase in number of broken links on our sitecore website.
Some it is due to
User Training
Publishing Issues (linked page is not yet published)
Maybe content editor issues
It's been hard to verify some of these but sometimes the link might have the authoring page URL (which means someone didn't follow the SOP), sometimes they have a strange url like /shell/Content Editor/...
So we are trying to proactively fix these before the pages go live.
I had a couple ideas like writing a Handler that would look through all "Rich Text Fields" and looking for inconsistencies (like authoring server URL). Also using a crawler-type of validator could help us (http://home.snafu.de/tilman/xenulink.html#Description) but we were wondering what the community was doing to address this issue.
The "internal link checker" usually works well but doesn't detect many of this erroneous setups (as I believe it sees them as 'external links').
Your input is greatly appreciated!
If you have RichText fields and create internal links, your internal link looks like this in the HTML view: "a href="~/link.aspx?_id=EB3AD128E7BF4F3C9F3812F701D7724E&_z=z" and when you hover with your mouse over it, is show "/Sitecore/Shell/Controls/Rich Text Editor/" before the ~/link.aspx. This is normal behavior. This link is modified to a normal link during rendering of the RTE field.
However, be sure to use the Sitecore controls like to render these RTE fields and to render links. Also using sc:fld() in XSLT instead of sc:field() can create strange links because sc:fld is rendering the raw value of the field.
In all of the Sitecore projects I have been working on, I didn't have much issues with broken links.
There is a known bug with copy-pasting links from a rich text editor, where path info is appended to the link (generating the /shell/Content Editor/ stuff).
Sitecore have a fix for it here:
http://sdn.sitecore.net/Products/Sitecore%20V5/Sitecore%20CMS%206/ReleaseNotes/KnownIssues%20Recommended/Copying%20and%20pasting%20link%20in%20rt%20fields%20may%20break%20the%20link.aspx
I would suggest a new Validation Action added to the workflow command before the items are finalized. Then you could actively stop them from being published and give immediate feedback. If you're not using workflows, you could add a new item level validator, but those often get ignored in my experience -- too many false positives on the existing validators.

Opencart module development - Inject javascript/html code in some pages

I'm a beginner on Opencart and just started developing a module for Opencart which it must inject some lines of javascript and html code in these pages:
- Cart Page
- Product Page
- Confirmation Order Page
- Register form page
The official documentation doesn't have informations about how can i do that, I've tried to find a good documentation about OpenCart but I didn't find anything.
I need help. How can I do that?
Diggin necro topics;) :
The easiest way i think:
upload/catalog/view/theme/[themename]/template/product/product.tpl - here you can add your custom html for product page
[your theme name, you shouldnt overwrite default theme because it can cause damage after update]
It depends on where you're trying to insert the HTML/JavaScript.
Doing things the proper way in OpenCart, you're limited to the column-left, column-right, content-top, and content-bottom positions.
The files you'll need to create are:
admin/controller/module/mymodule.php
admin/language/english/module/mymodule.php
admin/view/template/module/mymodule.tpl
catalog/controller/module/mymodule.php
catalog/language/module/mymodule.php
catalog/view/theme/default/module/mymodule.php
To learn how to do this the first time, it's easiest to replicate an existing stock OpenCart module (preferably a simple one, such as information). Once you've replicated it you'll need to go through each of those files and replace any references to "information" with "mymodule".
After that, if you've done it properly, you should be able to navigate to Admin > Extensions > Modules and see your module in there. Then install it, use the "Add module" button to position the module on all the relevant layouts, hit save and hey presto you have a working module on the front-end.
To modify the front-end output, just edit catalog/view/theme/default/module/mymodule.php
If you want to insert your HTML somewhere other than the 4 available positions OpenCart gives you, position your module in the content-bottom position and use JavaScript/jQuery to inject some HTML where you want.
If this is for your own personal website then as Pawel S suggested it would be easiest to simply modify the relevant view files (ie. catalog/view/theme/[themename]/template/product/product.tpl), however if you're making a module which you plan to distribute then this should be a last resort.
Hope that helps!
I realize this is probably long dead by now, but if you're creating a module that needs to modify existing controllers, languages, models or views the correct tool to use is vQMod.
vQMod allows you to modify existing code on the fly using XML.
https://code.google.com/p/vqmod/