Jump to content

Amzin (Bootstrap Responsive Skin)


Recommended Posts

Let's add some messages.

In /classes/gui.class.php, near line 1220, find:

    private function _displayPopularProducts()
    {

Change to:

    private function _displayPopularProducts()
    { $GLOBALS['debug']->debugMessage('Just entered the _displayPopularProducts() function.');

Near line 1240, find:

        if ($products) {

Change to:

        if ($products) { $GLOBALS['debug']->debugMessage('There are products to show.');

Near line 1275, find:

            $GLOBALS['smarty']->assign('POPULAR_PRODUCTS', $content);
        }
    }
Change to:

            $GLOBALS['smarty']->assign('POPULAR_PRODUCTS', $content);
        } else { $GLOBALS['debug']->debugMessage('There were no products to show.'); } $GLOBALS['debug']->debugMessage('Leaving _displayPopularProducts() function.');
    }

Now, after requesting the Homepage, in the grey debug section, near the bottom, there will be a list of Debug Messages.

Link to comment
Share on other sites

  • 3 weeks later...

Hello again!

After updating my CC to 6.4.2 and this amzin skin to 1.03, I am getting error message in admin>store settings>features, "Warning: It doesn't look like your current skin is compatible with whats3words.".

I am also having a couple of bugs after the update...

1. The links "gift certificates" and "sale items" that normally appear over the search bar in the header, are not always appearing. They appear randomly. Sometimes yes, sometimes no.

2. The button "remove item" in the shopping cart does not work properly. When you click on it, it goes to 404 error page.

Thanks

RICH

https://mybikerleather.com

Link to comment
Share on other sites

Hey @radman

The W3W compatibility notice in the admin panel is cosmetic - Providing you enter your W3W info it will work as intended. It's just in the admin panel it looks for a certain skin file to determine whether or not its compatible, however for the updates i approached it differently so the certain skin file isn't there.

As for the other issues, i can only assume something might have been edited incorrectly during your update, i can't seem to load your site (503 Service Unavailable) at the moment so i can't check whats going on.

  • Thanks 1
Link to comment
Share on other sites

Hey @radman

Managed to load your site.

Is the remove item link working if you switch to the foundation skin? Seems odd its not working, as the link appears to be correctly formatted and nothing has been changed to that link so not sure why you're getting the 404 error page.

 

Link to comment
Share on other sites

The "remove item" button is also not working in foundation. I have another person working on that issue.

But, the missing "gift certificate" and "sale items" link over the serch bar in the header is still intermittent. Most of the time it does not come up. I havent checked but I dont think foundation has those links, does it? And if not, that means its a skin issue?

Let me know your thoughts...Thank You!

Rich

Link to comment
Share on other sites

@radman If it's intermittent i wouldn't say it was a directly a skin issue as the skin is set to either show the links or hide the links based on the information CubeCart sends.

If you clear your site cache does it correct it or hide the ones in the main menu? 

 

Link to comment
Share on other sites

It corrects it (the ones in the header). The ones in the main menu never go away, clear cache or not. They have never failed.

Every time I clear cache, the links appear in the header. The next click, they are gone until I clear cache again.

Edited by radman
Link to comment
Share on other sites

Hey @radman

Pretty sure i have gotten to the bottom of it.

Due to a recent change with CubeCart the Sale Items / Gift Certificates links don't appear to work in the way that they used to which in turn affects the way that i used them in the template.

So, as a solution if you like them above the search box i would suggest you hard code them. If this is a route you would like to take please find the instructions below:

in skins > amzin > templates > main.php around lines 74 - 79 find

{if $CTRL_CERTIFICATES && !$CATALOGUE_MODE}
	<li><a href="{$URL.certificates}" title="{$LANG.navigation.giftcerts}"><i class="fas fa-gift"></i> {$LANG.navigation.giftcerts}</a></li>
{/if}
{if $CTRL_SALE}
	<li><a class="sale-link" href="{$URL.saleitems}" title="{$LANG.navigation.saleitems}"><i class="fas fa-tag"></i> {$LANG.navigation.saleitems}</a></li>
{/if}

 

and simply replace them with

<li><a href="https://mybikerleather.com/gift-certificates.html" title="{$LANG.navigation.giftcerts}"><i class="fas fa-gift"></i> {$LANG.navigation.giftcerts}</a></li>
<li><a class="sale-link" href="https://mybikerleather.com/sale-items.html" title="{$LANG.navigation.saleitems}"><i class="fas fa-tag"></i> {$LANG.navigation.saleitems}</a></li>

 

Sorry for any inconvenience caused by this oversight.

 

  • Like 1
Link to comment
Share on other sites

  • 2 months later...

Hello again!

I just noticed the picture gallery on the homepage of this demo.

I am currently running this skin, and I never recall having the picture gallery. Not sure maybe I deleted it?

I am wondering now if you could provide me with the info/code needed to put it back...?

THANKS

Rich

Link to comment
Share on other sites

 
That slider is just a basic bxslider banner slider set in the document content for the homepage which you modify via your admin panel.
 
Firstly create your banners and upload them to your site, for example (images > source > slide_001.png) Banners should be of equal size
 
Then, go to your admin panel and in the left-hand menu go to File Manager > Documents
 
Then, select the document for the homepage OR create a new document 
 
On the document content section click the "source" button in the left corner and create a slider box by adding :
 
<ul class="bxslider">

</ul>

 

If you want your banner to link to a page or product, then use the following structure within the ul element above :

<li>
	<a href="#LINK HERE#">
		<img src="#IMAGE SRC HERE#" />
	</a>
</li>
  
 
Replace the following:
 
#LINK HERE#  -- with the url you want it to goto 
#IMAGE SRC HERE#  -- with the image source which for the example would be something like -->  images/source/slide_001.png
 
Then, repeat for each slide.
 
If you just want your banner to displayed with no link, then use the following structure within the ul element above :
 
<li>
	<img src="#IMAGE SRC HERE#" />
</li>
 
 
So, your final content will look something like the following for a slider with linked images:
 
<ul class="bxslider">
	<li><a href="http://www.google.com"> <img src="images/source/slide_001.png" /> </a></li>  
	<li><a href="http://www.google.com"> <img src="images/source/slide_002.png" /> </a></li>    
	<li><a href="http://www.google.com"> <img src="images/source/slide_003.png" /> </a></li>  
	<li><a href="http://www.google.com"> <img src="images/source/slide_004.png" /> </a></li>    
</ul>

 

Then click save, make sure the document is set for Homepage and that the status option is checked.
 
Might need to clear your sites cache.
 
And that should be it.
 
  • Thanks 1
Link to comment
Share on other sites

  • 4 months later...

Hi @BargainDeals,

1) No Slider

Sliders are supported, but you will need to "build" one when editing your sites content pages. To add a slider please see the following reply on how to create one > https://forums.cubecart.com/topic/55948-amzin-bootstrap-responsive-skin/?do=findComment&comment=246595

2) Logo To Small

The skin can only work with what it is provided with. The skin has a pre-set area for logos which has a max-height of 50px and max-width of 260px; - the image you have uploaded has 32px by 180px so to get a bigger logo you'll need to upload a bigger image to make use of the available space.

 

Looking at your site i'm not seeing anything wrong with it, looks how it should based on how you set up your site so if you have any other specific things you're concerned don't look right list them and i'll go over them.

Thanks,

 

 

Link to comment
Share on other sites

  • 1 month later...

Hi @kiwi

 

To add selected document links to the category menu you'll need to add them manually

Open - amzin > templates > box.navigation.php


Find lines 29-31

{if $CTRL_SALE}
    <li><a class="sale-link" href="{$URL.saleitems}" data-level="1" title="{$LANG.navigation.saleitems}"><i class="fas fa-tag"></i> {$LANG.navigation.saleitems}</a></li>
{/if}

Now just below it (before the </ul>) add your document links using the following structure

    <li><a href="###LINKHERE###" data-level="1" title="Document One"> Document One</a></li>

 

To make the images responsive you'll need to remove the height/width styling from the html content and add class="img-responsive" to each of the image html elements.

To do this, click on the document page in the admin panel and select the content tab then add images as normal.

Then press the "source" button in the top left corner of the editor.

Your images will look something like :

<img alt="" src="/CubeCart/images/source/prod_01_a.png" style="width: 510px; height: 510px;" />

Now, remove the styling and add class="img-responsive"

so it would look something like

<img alt="" src="/CubeCart/images/source/prod_01_a.png" class="img-responsive" />

 

  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...