Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

Undefined variable: $args in cart/mini-cart-blade.php #6

Closed
besrabasant opened this issue Aug 22, 2018 · 3 comments
Closed

Undefined variable: $args in cart/mini-cart-blade.php #6

besrabasant opened this issue Aug 22, 2018 · 3 comments

Comments

@besrabasant
Copy link

I am working on a woo-commerce theme following the instructions that are given in Readme.md regarding porting PHP templates to blade templates.

I am facing an issue in cart/mini-cart.blade.php

In the original template in this line, there is a variable named $args that is reporting an Undefined variable: $args in my blade template.

How do I get values for this $args variable?

@mejta
Copy link
Contributor

mejta commented Aug 22, 2018

Hi, $args are extracted, so you should be able to access the variable directly.
So as a workaround, instead of $args['list_class'], please use $list_class. I will work on a fix that will solve it.

@besrabasant
Copy link
Author

besrabasant commented Aug 22, 2018

Thanks @mejta

but again here in my blade templates.

@mejta
Copy link
Contributor

mejta commented Aug 22, 2018

I will fix it tomorrow.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants