magesuite / theme-creativeshop

Open Software License 3.0
38 stars 22 forks source link

Freight calculation #11

Open nandopsilva opened 4 years ago

nandopsilva commented 4 years ago

Hello!

How can I enable shipping calculation on the cart page or on the product page?

I noticed that it shows only on the checkout page.

Best Regards, Fernando Silva

diwipl commented 3 years ago

Hi, Can you show a screenshot of features you're refering to ?

ggm-dev commented 3 years ago

I think Fernando is referring to this - I noticed same issue.

Screen Shot 2020-12-11 at 9 50 21 AM
nandopsilva commented 3 years ago

Hello @ggm-dev, exactly!

Thank you!

ggm-dev commented 3 years ago

Hi team - Do you have plans to style this to make it available on frontend? I need to get it working but can wait a bit if you have it on roadmap. Otherwise I'll take a crack at it.

Thanks and happy new year!.

nandopsilva commented 3 years ago

Hi @ggm-dev !

I realized that by disabling "Display none" the block appears correctly.

I just couldn't find where in the code to remove.

Look at this: block-shipping

But I was not able to find where I modify this.

nandopsilva commented 3 years ago

Hi @ggm-dev !

Here it worked by changing the following file: /public_html/vendor/creativestyle/your-theme/src/components/cart/cart-summary/cart-summary.scss

I modified lines 155 and 164 by replacing "Display none;" by "width: 100%;"

`.multicheckout, .#{$ns}cart-summary__shipping { width: 100%; }

.checkout-methods-items .item + .item {
    margin-top: 0 !important;
}

// Remove shipping estimation from cart summary
#block-shipping {
    width: 100%;
}`

And then, I deployed my theme again. Worked fine for me.

I think we can close this issue, if you agree.

Kind Regards, Fernando Silva

ggm-dev commented 3 years ago

Hi Fernando - I ended up doing the same thing as you, but I was going to try and move shipping estimation block next to the "Apply Discount Code" and style it to hide/display in the same way. It's one of the only default magento behaviors that I've found that isn't styled in the same beautiful way as the rest of the magesuite theme. What do you think - leave ticket open just in case the team wants to revisit? I would think most shops would want to have shipping estimation display by default.